C_SpellBook.FindSpellBookSlotForSpell

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 11.0.0

If found, returns the first slot position of a SpellBookItem matching the specified spell and criteria

spellBookItemSlotIndex, spellBookItemSpellBank = C_SpellBook.FindSpellBookSlotForSpell(spellIdentifier [, includeHidden, includeFlyouts, includeFutureSpells, includeOffSpec])

Arguments

spellIdentifier
number|string : SpellIdentifier
includeHidden
boolean? = 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
boolean? = true - If true, search includes Flyout SpellBookItems containing the specified spell
includeFutureSpells
boolean? = false - If true, search includes SpellBookItems for spells that have not yet been learned
includeOffSpec
boolean? = 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
number
spellBookItemSpellBank
Enum.SpellBookSpellBank
Value Field Description
0 Player
1 Pet