Target of Target + shiftmod macro help

I’m looking for help making a target of target + mod:shift macro that combines Earth Shield and Unleash Life. Basically what I want is when I’m dpsing a mob, I can hit this button to throw Unleash Life on the mob’s target (generally gonna be the tank), and if I hold shift it’ll do the same exact thing with Earth Shield.

I believe this would look something like this:

#showtooltip [mod:shift, @targettarget]Earth Shield; [@targettarget]Unleash Life

But the problem is, I want this macro to also be usable when I have no target or a friendly targeted as well. So in these cases, the spells would be going to my friendly target directly instead of target of target.

I for the life of me can’t figure out how to make this second part work. I’ve tried things like adding [@player] to the end of each, and empty brackets but it breaks the [mod:shift] component of the macro every time.

Is something like this even possible? I know how to make it work with just Earth Shield or just Unleash Life, but for some reason trying to combine both with a mod:shift is not working for me. :sob:

#showtooltip
/cast [mod:shift,@mouseover,help,nodead] [mod:shift,help] [mod:shift,@targettarget,help,nodead] [mod:shift] Earth Shield; [@mouseover,help,nodead] [help] [@targettarget,help,nodead] [] Unleash Life
1 Like

Omg it works, thank you so much! That was driving me absolutely bananas trying to figure out on my own. You’re a wizard. :sob: