Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API SpellIsTargeting

From WoW Classic Wiki

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

isTargeting = SpellIsTargeting();

Parameters

Arguments

none

Returns

isTargeting
Boolean - 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.