>wowhelm_
~/forever/addon-api/function/C_SpellBook.IsSpellBookItemUsable

C_SpellBook.IsSpellBookItemUsable

documented function · SpellBook
C_SpellBook.IsSpellBookItemUsable(spellBookItemSlotIndex, spellBookItemSpellBank) : isUsable, insufficientPower

Returns whether the SpellBookIem is currently castable; Typically based on things like learned status, required resources, etc

──ARGUMENTS
spellBookItemSlotIndex
luaIndex
spellBookItemSpellBank
SpellBookSpellBank
──RETURNS
isUsable
bool
insufficientPower
bool (True if SpellBookIem is specifically unusable due to insufficient power (ie MANA, RAGE, etc))
──DETAILS
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.