Macro help

I have this macro:

#showtooltip
/cast [@mouseover, help, nodead] Rejuvenation; [@mouseover, harm, nodead][@target, harm, nodead] Moonfire

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?

I’d like you to describe exactly how you want the macro to function, because I believe there might be some conflicting wishes involved. But perhaps:

#showtooltip
/cast [@mouseover,help,nodead] Rejuvenation; [@mouseover,harm,nodead][harm,nodead] Moonfire; Rejuvenation

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.

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