# Drawstep engine · Effects · `exileMayPlay` > Exile may play — Impulse draw: exile cards and allow the player to play them for their normal costs until the end of this turn / your next turn / your next end step or upkeep / forever. 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#exileMayPlay ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "exileMayPlay", … }`. Steps resolve in order. Printed words that point here (search aliases): impulse exile top card you may play it. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `graveyardReplacement` | `"exile"` | no | CR 614.1a, 400.7g: exile the spell cast using this permission if it would move from the stack to a graveyard, whether it resolves or is countered | | `playLimit` | `number` | no | Shared maximum number of cards playable across this permission (CR 611.2a, 601.3) | | `choose` | `number` | no | Select this many exiled cards now; only they get permission (CR 608.2d) | | `while` | `ConditionDef` | no | Ends permanently the first time this condition is false (CR 611.2b) | | `condition` | `ConditionDef` | no | Checked whenever a card would be played, without ending permission (CR 601.3) | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `amount` | `ValueDef` | no | Cards from the top of the library (default 1) when no target is given | | `target` | `TargetDef` | no | Specific cards to exile instead of the top of your library (e.g. mode top of another player's library) | | `until` | `"endOfTurn" \| "endOfNextTurn" \| "nextEndStep" \| "nextUpkeep" \| "endOfNextCombat" \| "nextExile" \| "forever"` | no | Permission lifetime; next combat is on your next turn, and nextExile tracks the source incarnation (CR 611.2a, 400.7) | | `free` | `boolean` | no | CR 118.9: cast spells without paying their mana costs under this permission | | `optionalFree` | `boolean` | no | Offer the option of casting without paying the mana cost in addition to normal play | | `freeIf` | `ConditionDef` | no | CR 118.9, 611.2c: evaluate when granting permission; if true spells may be cast without paying their mana costs | | `filter` | `ObjectFilter` | no | CR 601.3, 611.2a: only exiled cards matching this filter get the permission ("you may cast noncreature spells from among those cards", Narset, Enlightened Master); the others stay exiled | | `castOnly` | `boolean` | no | "You may cast" rather than play (no land plays) | | `faceDown` | `boolean` | no | Face down (CR 708) | | `flash` | `boolean` | no | CR 702.8: cast these cards as though they had flash while permission lasts | | `anyMana` | `"color" \| "type"` | no | Mana may be spent as though it were mana of any color / any type to cast those spells (CR 609.4b) | ## Minimal form ```json {"effect":"exileMayPlay","graveyardReplacement":"exile"} ``` The engine reads that minimal form as: “exile the top card of your library. You may play it this turn. If that spell would be put into a graveyard, exile it instead”. ## Stock examples - **Iteration 71 foreign permission** — “” ```json {"effect":"exileMayPlay","target":{"of":"object","mode":"chosen","zone":"graveyard","filter":{"owner":"opponent"}},"until":"endOfTurn"} ``` - **Flash Study** — “” ```json {"effect":"exileMayPlay","castOnly":true,"flash":true,"anyMana":"type"} ``` - **Exiled Study** — “” ```json {"effect":"exileMayPlay","target":{"of":"object","mode":"top","zone":"library"},"until":"nextEndStep","castOnly":true} ``` ## 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) - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive