Cast Spell
Description
Casts a learned spell on the target player, running it through the full cast pipeline. Cooldowns, learn checks, target conditions, reagent costs, and cast time are all enforced — this mechanic does not bypass them.
If the target hasn't learned the spell, doesn't have enough reagents, has the spell on cooldown, or isn't an online player with an active profile, the mechanic returns CONDITION_FAILED.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| spell | s | The spell to cast. Supports placeholders. | required |
| instant | ignoreCastTime | If true, skips the cast-time pipeline and runs the spell's skills immediately (cooldown / cost checks still apply). |
false |
Examples
Force the trigger player to cast their learned MagicMissile on a mob proc:
Skills:
- castSpell{spell=MagicMissile} @trigger
Bypass the cast time when an item is consumed (still consumes mana, still checks cooldown):
Skills:
- castSpell{spell=Heal;instant=true} @self ~onConsume
Used inside a cooldown-reset proc — the player is forced to immediately cast Smite on the killed mob:
Skills:
- modifySpellCooldown{spell=Smite;cooldown=0} @self
- castSpell{spell=Smite} @killer ~onKill
Aliases
- castRPGSpell