Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API IsSpellKnown

Last wiki revision 2023-11-12

Returns whether the player (or pet) knows the given spell. isKnown = IsSpellKnown(spellID [, isPetSpell])

  • spellID: - the spell ID number
  • isPetSpell: - if true, will check if the currently active pet knows the spell; if false or omitted, will check if the player knows the spell
  • isKnown: - whether the player (or pet) knows the given spell
  • This function may return false when querying learned spells that are passive effects. Consider using for these.
  • Returns false if querying a spell that has "replaced" a known spell, which returns true whether or not it's replaced (i.e. Retribution's Templar's Verdict (85256) will always be true and Final Verdict (336872) will be false whether or not you have the related legendary equipped). In these cases, use IsSpellKnownOrOverridesKnown(spellID) to check for spells like Final Verdict.

Source

https://warcraft.wiki.gg/wiki/API_IsSpellKnown · 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.