Help fixing a selfcast IF target=enemy macro

#0 - Dec. 7, 2006, 5:22 a.m.
Blizzard Post
/script CastSpellByName("Lesser Healing Wave(Rank 6)");if((SpellIsTargeting())and(not UnitIsFriend("player","target")))then SpellTargetUnit("player");end;

that is what i used to use and is broke now, but i am not great at writing macros so I need you guys help.

This is a VERY help macro, the point is that if i am targeting an enemy....it will selfcast and then retarget enemy. If i am targeting a friendly player it will heal them.

Yes i know of the builtin selfcast option in WoW, but i have a lot of hotkey bars and i use shift/alt/ctrl to access them. Does anyone have a fix for this or a similar macro or addon that wont use ctrl/alt/shift . thanks a lot.

#1 - Dec. 7, 2006, 5:24 a.m.
Blizzard Post
Q u o t e:
/script CastSpellByName("Lesser Healing Wave(Rank 6)");if((SpellIsTargeting())and(not UnitIsFriend("player","target")))then SpellTargetUnit("player");end;


This one is easy:
/cast [help] Lesser Healing Wave; [target=player] Lesser Healing Wave