→ WoW API
Checks whether a spell is about to be cast, waiting for a target.
isTargeting = SpellIsTargeting();
- Boolean - true if a spell has been cast and is waiting for a target; false otherwise
CastSpellByName("Purify") if (SpellIsTargeting()) then SpellTargetUnit("player") end
Casts Purify on the current target, if possible; otherwise, casts on the casting player. No longer work as of 2.0.1