Mouseover, with modifier, auto-self cast when no mouseover target

I’m trying to write a macro that does the following:

  • Casts Regrowth on my mouseover target
    • If shift, casts Rejuvenation on mouseover target
  • If no mouseover target, self-casts Regrowth (auto-self cast is enabled)
    • If shift, cast Rejuvenation on self

Here’s what I’ve got (single line, no line breaks):

/cast [mod:shift,@mouseover,nodead,help] Rejuvenation;
[@mouseover,nodead,help] Regrowth; 
[mod:shift] Rejuvenation; [@player] Regrowth

The first three conditionals work as expected. What does not work is casting Regrowth on self. I’ve tried [nomod] as well as no conditional to no avail.

#showtooltip
 /cast [mod:shift,@mouseover,nodead,help][mod:shift]Rejuvenation;[@mouseover,help,nodead][@player]Regrowth

This is working for me. If you can keep the conditionals for the same spell in one section, for example, doing [mod:shift,@mouseover][mod:shift]Spell 1;[@mouseover][]Spell 2 instead of [mod:shift,@mouseover]Spell 1;[@mouseover]Spell 1;[mod:shift]Spell 1;[]Spell 2 it tends to work as expected in my experience, as well as saving space. Not exactly sure why it doesn’t always work the way you tried, but the game can be picky.

1 Like

Ya, you just need to put [mod:shift] sets first

#showtooltip
/cast [mod:shift,@mouseover,help,nodead] [mod:shift] Rejuvenation;
[@mouseover,help,nodead] [] Regrowth

Removed the @player so auto-self cast can do the work and you can also cast on targets if you wish.