C_SpellBook. GetSpellBookItemInfo
functionimplementedavailable in: camelot
Returns info for a spellbook item.
function C_SpellBook.GetSpellBookItemInfo( spellBookItemSlotIndex: number, spellBookItemSpellBank: SpellBookSpellBank): SpellBookItemInfo?Parameters
| name | type | description |
|---|---|---|
spellBookItemSlotIndex | number | Spellbook slot index, ranging from 1 through the total number of spells across all tabs and pages |
spellBookItemSpellBank | SpellBookSpellBank |
Returns
spellBookItemInfo · SpellBookItemInfo?
| field | type | description |
|---|---|---|
actionID | number | Represents a base spellID for spells, flyoutID for flyouts, or petActionID for pet actions |
spellID | number? | May be nil if item is not a spell; Will be the overriding spellID if spell is overriden, otherwise will match actionID |
itemType | SpellBookItemType | |
name | string | |
subName | string | May be empty if flyout, or if spell's data isn't loaded yet; Listen for SPELL_TEXT_UPDATE event, or use SpellMixin to load asynchronously |
iconID | number | |
isPassive | boolean | True if the item is a passive spell; Will always be false if it is not a spell |
isOffSpec | boolean | True if the item belongs to a non-active specialization |
skillLineIndex | number? | Index of the SkillLine this SpellBookItem is part of; Nil this SpellBookItem isn't part of a SkillLine |
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 ↗.