I'm sure your macro works fine, but I just want to point out that it's not necessary. You can simply watch the tank. The one he attacks first will be red.