WoW:API SpellIsTargeting

From AddOn Studio
Revision as of 09:06, 14 December 2004 by WoWWiki>Caedric (First pass.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SpellIsTargeting -Documentation by Caedric-

Checks whether a spell has been cast and is waiting for a target.

SpellIsTargeting()

Arguments
none

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

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

Casts Purify on the current target, if possible; otherwise, casts on the casting player.


Template:WoW API