Cancel Cast
Description
Cancels the target player's active spell cast. The cast is recorded with the cancelled cancel reason, and the ~onSpellCastCancel trigger fires.
If the target is not currently casting, the mechanic returns CONDITION_FAILED.
This is the right mechanic to use to silently stop a cast (e.g. inside a "channel-break-on-stun" effect). To explicitly interrupt a cast — which fires the dedicated ~onSpellCastInterrupt trigger and respects the spell's Casting.Interruptible flag — use interrupt instead.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| force | f | If true, ignores the spell's Casting.Interruptible flag and cancels regardless. |
true |
Examples
Cancel the caster's own cast on a stun:
Skills:
- cancelCast @self
Cancel a target's cast only if it's marked as interruptible:
Skills:
- cancelCast{force=false} @target
Aliases
- cancelSpellCast