C_SpellBook.GetSpellBookItemType

From Warcraft Wiki
Jump to navigation Jump to search

Needs summary.

itemType, actionID, spellID = C_SpellBook.GetSpellBookItemType(spellBookItemSlotIndex, spellBookItemSpellBank)

Arguments

spellBookItemSlotIndex
number - Spellbook slot index, ranging from 1 through the total number of spells across all tabs and pages
spellBookItemSpellBank
Enum.SpellBookSpellBank
Value Field Description
0 Player
1 Pet

Returns

itemType
Enum.SpellBookItemType
Value Field Description
0 None
1 Spell
2 FutureSpell
3 PetAction
4 Flyout
actionID
number - Represents a spellID for spells, flyoutID for flyouts, or petActionID for pet actions
spellID
number? - May be nil if item is not a spell; may be different from actionID if item is an overriden spell

Details