/script if(UnitName("target")~=nil and
UnitIsFriend("player","target"))then
CastSpellByName("Healing Wave(Rank 9)")
SendChatMessage("Healing %T","Party")else
TargetUnit("player")CastSpellByName("Healing
Wave(Rank 9)")TargetLastEnemy();endThere is a space at the end of the last word "and" in the first line, after "then" in the second line, after "else" in the fourth line, and after "Healing" in the fifth line. Blizzard limits macros to 255 characters, so I have eliminated spaces that would normally exist but do not impact functionality of the macro. Do not insert any character returns in this macro. Note that the command "end" is case sensitive.Big thanx to Muppet for giving me his code to work from.