Macro that switches from friendly to hostile target

This is the one I use so that if my target dies, my next spellcast targets the next nearest thing (like it would if I was using a melee ability)

/targetenemy [noexists][dead]

The full thing is:

#showtooltip
/targetenemy [noexists][dead]
/petattack
/cast
/use 13
/use 14

What I want to include is the option for it to switch from a friendly target to a hostile one, because sometimesI missclick on a pet or ally, and it gives me the “invalid target” error

Thanks for any help :slight_smile:

Anyone? Please? :slight_smile:

Have you tried /startattack instead?

2 Likes

You should be able to just add the [help] condition to your /targetenemy line.

#showtooltip
/targetenemy [noexists][dead][help]
/petattack
/cast
/use 13
/use 14
1 Like

You should be able to just add the [help] condition to your /targetenemy line.

#showtooltip
/targetenemy [noexists][dead][help]
/petattack
/cast
/use 13
/use 14

First thing I tried, changed nothing :frowning:
Thansk for the suggestion though :slight_smile:

Have you tried /startattack instead?

THAT DID IT THANK YOU!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.