Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns whether the player (or pet) knows the given spell.
isKnown = IsSpellKnown(spellID [, isPetSpell])
Arguments[]
- spellID
- number - the spell ID number
- isPetSpell
- boolean? - if true, will check if the currently active pet knows the spell; if false or omitted, will check if the player knows the spell
Returns[]
- isKnown
- boolean - whether the player (or pet) knows the given spell
Details[]
- 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.