Help / Harm macro

i am looking for a macro as short as possible tha does the following
1.- When pressing shift it casts the spell on me (done)
2.- When pressing right click casts the spell on my focus (done)

working on
3.- When targeting an enemy it casts the spell on the enemy’s target (if it’s an ally)
4.- When targeting an ally it casts the spell on that ally and not his target

this is what i got so far, i would aprecciate your help :slight_smile:

#showtooltip Flash of Light
/cast [@player, mod:shift] Flash of Light
/cast [@focus, button:2] Flash of Light

/cast [@target, help] Flash of Light
/cast [@targettarget, harm] Flash of Light

Give this a try:

#showtooltip
/cast [@player, mod:shift][@focus, button:2][help, nodead][@targettarget, help, nodead] Flash of Light

Each conditional (in the brackets) will be tested in the order that they appear. When one evaluates to true, it will cast Flash of Light on the relevant target.

Also be aware that when using something like @targettarget, it will evaluate based on target of target, not the target. So, you’re checking if the target of target is a friend, not if the target is an enemy.

2 Likes

Change 1, Add 2 - Done.

#showtooltip
/cast [mod:shift,@player] [btn:2,@focus] [@mouseover,help,nodead] [help] [@targettarget,help,nodead] [] Flash of Light
2 Likes