C_SpellBook .GetSpellBookItemType
Jump to navigation
Jump to search
C_SpellBook.GetSpellBookItemType |
+ 11.0.0 | ||
C_SpellBook.GetSpellBookItemInfo |
+ 11.0.0 | ||
GetSpellBookItemInfo |
+ 4.0.1, - 11.0.0 |
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
- New C_SpellBook.GetSpellBookItemInfo contains far more info than old GetSpellBookItemInfo
- C_SpellBook.GetSpellBookItemType is the direct replacement for just the type info that the old GetSpellBookItemInfo returned (+spellID as a new bonus 3rd return value)