canCast
canCast: boolean?Whether every requirement is met.
- Returns
nilwhen a requirement could not be read -- no scene yet, not logged in. Not a third answer about the spell.
A value shape that methods take or return.
player:magic():castability(…)| Field | Type | Description |
|---|---|---|
canCast | boolean? | Whether every requirement is met. |
usingBlightedSack | boolean | Whether a blighted sack is what satisfies the rune cost. |
spell | SpellInfo | The spell this describes. |
spellbook | RequirementStatus | Whether the right spellbook is open. |
magicLevel | RequirementStatus | Whether the Magic level requirement is met. |
runes | RequirementStatus | Whether the runes are carried. |
items | { { status: RequirementStatus, requirement: SpellItem } } | Per-item requirements, each { status, requirement }. |
| Method | Returns | Description |
|---|---|---|
Magic.castability | Castability | Every requirement and whether it is met, rather than one boolean. |
canCastcanCast: boolean?Whether every requirement is met.
nil when a requirement could not be read -- no scene yet, not logged in. Not a third answer about the spell.