Macro help

I’m trying to make a macro for Power word shield, Power Infusion, Lifeswap, and Leap of Faith. So far it’s just a mouseover:

#showtooltip Leap of Faith
/cast [@mouseover,help,nodead] Leap of Faith

Which works fine. But the issue is and what I want it to do, is I want it to work when there is no mouseover target. For example, for Power word shield if there is no mouseover target, I want to cast it on myself. Or, if I do have an actual target, I want to cast it on my target.

Is that possible? Or does that even make sense to anyone lol. Any help is appreciated, thanks.

#showtooltip
/cast [@mouseover,help,nodead][]Leap of Faith

If you have open brackets [] at the end of your previous bracketed conditionals, it allows any condition to be met.

So in this case, open brackets at the end will prioritize your mouseover condition first and if that does not exist, then it goes to the next conditional which is anything when you use open brackets.

That should get the effect you are wanting.

3 Likes

Awesome, thank you!