Fandom

WoWWiki

API SpellIsTargeting

104,669pages on
this wiki
Add New Page
Talk0 Share
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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki