v0.13.8

C_SpellBook.FindSpellBookSlotForSpell

functionimplementedavailable in: camelot

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

signaturewowlua
function C_SpellBook.FindSpellBookSlotForSpell(    spellIdentifier: SpellIdentifier,    includeHidden: boolean,    includeFlyouts: boolean,    includeFutureSpells: boolean,    includeOffSpec: boolean): (number?, SpellBookSpellBank?)

Parameters

nametypedescription
spellIdentifierSpellIdentifier
includeHiddenbooleanIf true, search includes SpellBookItems that are hidden from the SpellBook UI (ex: spells that have been replaced, are also in a Flyout, etc) Default: false.
includeFlyoutsbooleanIf true, search includes Flyout SpellBookItems containing the specified spell Default: true.
includeFutureSpellsbooleanIf true, search includes SpellBookItems for spells that have not yet been learned Default: false.
includeOffSpecbooleanIf 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 Default: false.

Returns

#nametype
1spellBookItemSlotIndexnumber?
2spellBookItemSpellBankSpellBookSpellBank?

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpellBook system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.