It works, but instead of it displaying just a ? on my bar when not targetting anything, how do I get it to stay as Rejuvenation but for it to change to Moonfire when I target an enemy? If I add #showtooltip Rejuvenation it always stays as Rejuvenation.
Any help greatly appreciated!
ALSO, anyway to still be able to cast spells on the target if I’m not mousing over the unit frame?
If your mouseover is friendly and not dead, cast Rejuvenation.
Else if your mouseover is hostile and not dead, cast Moonfire.
Else if your regular target is hostile and not dead, cast Moonfire. (I have never seen a macro where @target accomplished anything)
Else cast Rejuvenation.
Given that as a last resort it will just cast Rejuvenation no matter what, the tooltip will never be a question mark. You can also do things like
#showtooltip [harm] Moonfire; Rejuvenation
but I think you’ll be happier just leaving it like this. Your macro will always cast something now, and the tooltip will show you what.