Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API IsPlayerSpell

Last wiki revision 2022-08-01

Returns whether the player has learned a particular spell. isKnown = IsPlayerSpell(spellID)

  • spellID: - Spell ID of the spell to query, e.g. 1953 for Blink.
  • isKnown: - true if the player can cast this spell (or a different spell that overrides this spell), false otherwise.
  • Spells can be permanently or temporarily overridden by other spells as a result of procs, talents, or other spell mechanics, e.g.
  • Moonfire is overriden by Sunfire while in Solar Eclipse
  • Trap Launcher replaces trap spells by ranged variants
  • Nether Tempest replaces a permanent base spell Mage Bomb
  • Chakra replaces Holy Word: Chastise with different spells
  • 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.

Source

https://warcraft.wiki.gg/wiki/API_IsPlayerSpell · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.