Has Spell Bound
Description
Matches the player's hotbar bindings.
The behavior depends on which attributes are set:
slot=N(no spell) — matches if any spell is bound to slot N.slot=N+spell=X— matches only if spell X is bound to slot N specifically.slot=0+spell=X— matches if spell X is bound to any slot.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| slot | l | The hotbar slot (1–9). 0 means "any slot" |
0 |
| spell | s, id | The spell id to check for | (any) |
Examples
Conditions:
- hasSpellBound{slot=1} true # any spell bound to slot 1
- hasSpellBound{slot=1;spell=Fireball} true # Fireball bound to slot 1
- hasSpellBound{slot=0;spell=Fireball} true # Fireball bound to any slot
Aliases
- hasBoundSpell
- hasBinding