Macro to heal enemy target's target

Macro to heal enemy target's target

by zubdub12 » Thu Dec 10, 2015 5:20 pm

Looking for a macro that will allow me to heal my target's target if my target is an enemy and his target is an ally. For example if i am in a battleground and I am targetting an enemy warrior who is targetting (and attacking) a friendly hunter, I want to be able to maintain my target on the warrior, cast my heal, and have the heal go to the hunter. I had a macro like this in vanilla, was wondering if anyone got it working here. Please help thank you
zubdub12
Tester
 

Re: Macro to heal enemy target's target

by LYQ » Thu Dec 10, 2015 6:01 pm

try

/run if UnitCanAttack("player","target") and not UnitCanAttack("player","targettarget") then TargetUnit("targettarget") CastSpellByName("Heal") TargetLastTarget() end
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 


Return to Addons & macros