Cast a spell depending if Enemy or Ally

Cast a spell depending if Enemy or Ally

by Kwayzie » Thu Jan 07, 2016 4:14 pm

I have this macro in retail, /cast [mod:alt, target=player] [help] Healing Wave; [harm] Lava Burst; Healing Wave.

That would cast Healing wave if I target an ally, lava burst if enemy, and healing on myself if I hold shift.

Is there anyway to make this work in Vanilla?
Kwayzie
Tester
 

Re: Cast a spell depending if Enemy or Ally

by Dreez » Thu Jan 07, 2016 8:19 pm

Code: Select all
/run local c=CastSpellByName if IsShiftKeyDown()then TargetUnit("player")c("Healing Wave")TargetLastTarget()else if UnitCanAttack("player", "target")then c("Lava Burst")else c("Healing Wave")end end
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 

Re: Cast a spell depending if Enemy or Ally

by Kwayzie » Thu Jan 07, 2016 9:20 pm

ty works perfectly :D
Kwayzie
Tester
 


Return to Addons & macros