C_SpellBook.GetSpellBookItemAutoCast

From Warcraft Wiki
Jump to navigation Jump to search

Returns nothing if item doesn't exist or isn't a spell

autoCastAllowed, autoCastEnabled = C_SpellBook.GetSpellBookItemAutoCast(spellBookItemSlotIndex, spellBookItemSpellBank)

Arguments

spellBookItemSlotIndex
number
spellBookItemSpellBank
Enum.SpellBookSpellBank
Value Field Description
0 Player
1 Pet

Returns

autoCastAllowed
boolean - True if this spell is allowed to be auto-cast
autoCastEnabled
boolean - True if auto-casting this spell is currently enabled (usually by the player)