~/forever/addon-api/function/C_SpellBook.FindSpellBookSlotForSpell
C_SpellBook.FindSpellBookSlotForSpell
documented function · SpellBook
C_SpellBook.FindSpellBookSlotForSpell(spellIdentifier, includeHidden, includeFlyouts, includeFutureSpells, includeOffSpec) : spellBookItemSlotIndex, spellBookItemSpellBankIf found, returns the first slot position of a SpellBookItem matching the specified spell and criteria
──ARGUMENTS
- spellIdentifier
- SpellIdentifier
- includeHidden
- bool, default false (If true, search includes SpellBookItems that are hidden from the SpellBook UI (ex: spells that have been replaced, are also in a Flyout, etc))
- includeFlyouts
- bool, default true (If true, search includes Flyout SpellBookItems containing the specified spell)
- includeFutureSpells
- bool, default false (If true, search includes SpellBookItems for spells that have not yet been learned)
- includeOffSpec
- bool, default false (If true, search includes SpellBookItems belonging to non-active specializations; If spell is in active and inactive spec, the active spec slot will always be returned)
──RETURNS
- spellBookItemSlotIndex
- luaIndex
- spellBookItemSpellBank
- SpellBookSpellBank
──DETAILS
- May Return Nothing
- true
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.