~/forever/addon-api/function/C_Spell.IsSpellUsable
C_Spell.IsSpellUsable
documented function · Spell
C_Spell.IsSpellUsable(spellIdentifier) : isUsable, insufficientPowerReturns whether the spell is currently castable; Typically based on things like learned status, required resources, etc
──ARGUMENTS
- spellIdentifier
- SpellIdentifier
──RETURNS
- isUsable
- bool
- insufficientPower
- bool (True if spell is specifically unusable due to insufficient power (ie MANA, RAGE, etc))
──DETAILS
- Secret Arguments
- AllowedWhenTainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.