# Drawstep engine · Statics & layers · `cantCast` > Cant cast — CR 601.3, 101.2: these players cannot cast spells matching the filter. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/statics#cantCast ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "cantCast", … } }`. Applied continuously through the layer system. Printed words that point here (search aliases): can't cast spells can't be cast from anywhere other than their hands. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | yes | Which player(s) — a player selector (default `you`) | | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `exceptFrom` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | CR 601.2a, 101.2: forbid only spells cast from anywhere other than this zone — "Your opponents can't cast spells from anywhere other than their hands" is exceptFrom: "hand" (Drannith Magistrate): no flashback, foretell, commanders from the command zone, top of library, adventures or cascade from exile. Playing lands isn't casting | | `from` | `("battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command")[]` | no | CR 601.2a, 101.2: forbid only spells cast from these zones — "Players can't cast spells from graveyards or libraries" (Grafdigger's Cage) is ["graveyard", "library"]; "You can't … cast spells from your hand" is ["hand"]. A card cast from exile is cast from exile | ## Minimal form ```json {"type":"cantCast","who":"you"} ``` The engine reads that minimal form as: “you can't cast spells”. ## Stock examples - **Self Casting Ban Study** — “” ```json {"type":"cantCast","who":"you"} ``` - **Attack Casting Ban Study** — “” ```json {"type":"cantCast","who":"defendingPlayer"} ``` - **Grand Abolisher** — “During your turn, your opponents can't cast spells or activate abilities of artifacts, creatures, or enchantments.” ```json {"type":"cantCast","who":"eachOpponent"} ``` ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive