Macro for help/enemy casts

Hey, I was looking for a macro that uses the [help][enemy] function but a bit more specific.

I know I can bind two spells to 1 key bind, a heal and a damage spell which will be choosen depending on my target but is there a way to write it like this :

If I target an ally I cast Holy Shock, if I target an enemy I cast HolyShock @focus ?

Not exactly, but:

#showtooltip
/cast [help][@focus,exists][] Holy Shock

If you have a friendly target, cast on it.
Else if you don’t have a friendly target (could be no target), but have a focus, cast on focus (whether hostile or friendly).
Else, cast Holy Shock normally.

Might also want:

#showtooltip
/cast [help,nodead][@focus,exists,nodead][] Holy Shock

Which skips your friendly/focus targets if they’re dead, so it moves on to the next option instead of failing.

Wonderful works like a charm

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