# Drawstep engine · Effects · `cantCast` > Cant cast — Selected players cannot cast matching spells for this duration (CR 611.2). 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/effects#cantCast ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "cantCast", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `filter` | `ObjectFilter` | no | Only spells matching this filter are forbidden; omitted means every spell | | `duration` | `Duration` | no | CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes | ## Minimal form ```json {"effect":"cantCast"} ``` The engine reads that minimal form as: “you can't cast spells this turn”. ## Stock examples - **Loyalty Silence Study** — “” ```json {"effect":"cantCast","who":"eachOpponent","duration":"endOfTurn"} ``` - **Mandate of Peace** — “Cast this spell only during combat.” ```json {"effect":"cantCast","who":"eachOpponent","duration":"endOfTurn"} ``` - **Turn Silence** — “Target player can't cast spells this turn.” ```json {"effect":"cantCast","who":"target","target":{"of":"player","mode":"chosen"},"duration":"endOfTurn"} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.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