Wikia

WoWWiki

API SpellIsTargeting

Talk0
101,312pages on
this wiki
WoW API < SpellIsTargeting

Checks whether a spell is about to be cast, waiting for a target.

isTargeting = SpellIsTargeting();

Parameters Edit

Arguments Edit

none

Returns Edit

isTargeting 
Boolean - true if a spell has been cast and is waiting for a target; false otherwise

Example Edit

CastSpellByName("Purify")
if (SpellIsTargeting()) then
  SpellTargetUnit("player")
end

Result Edit

Casts Purify on the current target, if possible; otherwise, casts on the casting player. No longer work as of 2.0.1

Around Wikia's network

Random Wiki