v0.13.8

C_SpellBook.GetSpellBookItemInfo

functionimplementedavailable in: camelot

Returns info for a spellbook item.

signaturewowlua
function C_SpellBook.GetSpellBookItemInfo(    spellBookItemSlotIndex: number,    spellBookItemSpellBank: SpellBookSpellBank): SpellBookItemInfo?

Parameters

nametypedescription
spellBookItemSlotIndexnumberSpellbook slot index, ranging from 1 through the total number of spells across all tabs and pages
spellBookItemSpellBankSpellBookSpellBank

Returns

spellBookItemInfo · SpellBookItemInfo?

SpellBookItemInfo
fieldtypedescription
actionIDnumberRepresents a base spellID for spells, flyoutID for flyouts, or petActionID for pet actions
spellIDnumber?May be nil if item is not a spell; Will be the overriding spellID if spell is overriden, otherwise will match actionID
itemTypeSpellBookItemType
namestring
subNamestringMay 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
iconIDnumber
isPassivebooleanTrue if the item is a passive spell; Will always be false if it is not a spell
isOffSpecbooleanTrue if the item belongs to a non-active specialization
skillLineIndexnumber?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 ↗.