Wowpedia
Advertisement
Wowpedia
236,538
pages
Game Flavors
Links
Patch
Added in 5.0.4 / 1.13.2

Returns whether the player has learned a particular spell.

isKnown = IsPlayerSpell(spellID)

Arguments

spellID 
number - Spell ID of the spell to query, e.g. 1953 for [Blink].

Returns

isKnown 
boolean - true if the player can cast this spell (or a different spell that overrides this spell), false otherwise.

Details

  • Spells can be permanently or temporarily overridden by other spells as a result of procs, talents, or other spell mechanics, e.g.
  • Querying the base (replaced) spell will also return true if any of its overrides are currently active.
  • Querying an overriding spell may or may not return true even if that spell is currently known, depending on the particular spell.

Patch history

Mists of Pandaria Patch 5.0.4 / API (2012-08-28): Added.

See also

Advertisement