C_SpellBook. FindSpellBookSlotForSpell
functionimplementedavailable in: camelot
If found, returns the first slot position of a SpellBookItem matching the specified spell and criteria
function C_SpellBook.FindSpellBookSlotForSpell( spellIdentifier: SpellIdentifier, includeHidden: boolean, includeFlyouts: boolean, includeFutureSpells: boolean, includeOffSpec: boolean): (number?, SpellBookSpellBank?)Parameters
| name | type | description |
|---|---|---|
spellIdentifier | SpellIdentifier | |
includeHidden | boolean | If 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. |
includeFlyouts | boolean | If true, search includes Flyout SpellBookItems containing the specified spell Default: true. |
includeFutureSpells | boolean | If true, search includes SpellBookItems for spells that have not yet been learned Default: false. |
includeOffSpec | boolean | 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 Default: false. |
Returns
| # | name | type |
|---|---|---|
| 1 | spellBookItemSlotIndex | number? |
| 2 | spellBookItemSpellBank | SpellBookSpellBank? |
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 ↗.