WoW API: SpellIsTargeting

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API SpellIsTargeting to API SpellIsTargeting without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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