autocastId
autocastId: number?The autocast slot id.
- Returns
nilwhen the spell cannot be autocast.
A value shape that methods take or return.
player:magic():autocastSpell()
player:magic():spellInfo(…)
player:magic():castability(…).spell| Field | Type | Description |
|---|---|---|
name | string | The spell's name, as magic:cast takes it. |
level | number | Magic level required. |
spellbook | Spellbook | Which spellbook it belongs to. |
widgetId | number | Packed id of the spell's icon in the spellbook interface. |
autocastId | number? | The autocast slot id. |
spriteId | number? | The spell's icon sprite. |
target | "none" | "npcOrPlayer" | "npc" | "player" | "groundItem" | "object" | "inventory" | "groundItemOrInventory" | What the spell is cast on; "none" for a spell magic:cast casts as it is. |
requiredRunes | { { rune: Rune, quantity: number } } | Rune cost, each { rune, quantity }. |
| Method | Returns | Description |
|---|---|---|
Magic.autocastSpell | SpellInfo? | The spell currently set to autocast. |
Magic.spellInfo | SpellInfo | A spell's static facts: level, runes, requirements. |
autocastIdautocastId: number?The autocast slot id.
nil when the spell cannot be autocast.spriteIdspriteId: number?The spell's icon sprite.
nil when it has none.