Combining mouse over macro with self target macro?

I know nothing of macros more than how to copy-paste them into the game, and now I’m trying to find a way to combine 2 functions I found as macros, in one single macro. I want to combine this one, for mousover targeting:

/cast [@mouseover,exists][@target,exists][@player] Holy Shock

And this one, for self target if I hold shift:

/cast [target=player, modifier:shift] [target=target, nomodifier] Holy Shock

Basically, I want to be able to use Holy shock (and other spells) with mouseover, BUT if I hold ‘shift’, the target will always be myself, regardless of my existing target or my mouseover target. I have no idea how to do this. Is it possible?

#showtooltip
/cast [mod:shift,@player] [@mouseover,exists,nodead] [] Holy Shock

That will let you mouseover both friends and enemies. If you only want to be able to do friends change exists to help.

Also, keep in mind that keybinds take priority over modifiers so you’ll need to unbind whatever conflicts you have on shift-key (by default SHIFT 1-6 are bound to Action Page 1-6)

2 Likes

Thank you! Thank you for the tip as well, I’ll consider changing it since my main target should be an enemy anyway. :smiley:

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