C_SpellBook. GetSpellBookItemAutoCast
functionimplementedavailable in: camelot
Returns nothing if item doesn't exist or isn't a spell
function C_SpellBook.GetSpellBookItemAutoCast( spellBookItemSlotIndex: number, spellBookItemSpellBank: SpellBookSpellBank): (boolean?, boolean?)Parameters
| name | type |
|---|---|
spellBookItemSlotIndex | number |
spellBookItemSpellBank | SpellBookSpellBank |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | autoCastAllowed | boolean? | True if this spell is allowed to be auto-cast |
| 2 | autoCastEnabled | boolean? | True if auto-casting this spell is currently enabled (usually by the player) |
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 ↗.