#showtooltip
/cast [@mouseover,help,exists,nodead] Flash Heal; [@mouseover,harm,exists,nodead][harm,exists,nodead] Shadow Word: Pain [mod:alt,@player,help,exists,nodead] Flash Heal [mod:shift,@focus,harm,exists,nodead] Shadow Word. Pain;
The above has been my initial macro, which someone who understands more about them has rewritten to this:
#showtooltip
/cast [@mouseover,harm,nodead,nomod][@target,harm,nodead,nomod][@focus,harm,nodead,mod:shift] Shadow Word: Pain
/cast [@mouseover,help,nodead,nomod][@target,help,nodead,nomod][@player,nodead,mod:alt] Flash Heal
The only issue that I am now facing is that the macro prioritizes casting Shadow Word: Pain on the target I have selected, over its mouse-over function.
E.g. if I am in a battleground and have my opponent targeted, but want to cast a mouse-over on my allie, it instead prioritizes casting the harmful target spell rather than waiting for my mouse to no longer mouseover an ally.
How can I achieve the desired behavior?