# Drawstep engine · Effects · `playFromGraveyard` > Play from graveyard — CR 305.1 / 601.3: until end of turn, play matching graveyard cards with normal costs and timing. 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#playFromGraveyard ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "playFromGraveyard", … }`. 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`) | | `fromPlayer` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Whose graveyard supplies the one spell. Resolve this player when the permission is created; a matching card can arrive later | | `anyMana` | `"color" \| "type"` | no | Spend mana as any color or type only while casting the spell using this permission | | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `target` | `TargetDef` | no | CR 400.7, 611.2a: only these selected graveyard card incarnations receive permission | | `castOnly` | `boolean` | no | CR 305.1, 601.3: allow spells, not land plays | | `once` | `boolean` | no | CR 611.2a: one matching spell may be cast under this permission, which is then spent | | `graveyardReplacement` | `"exile"` | no | CR 614.1a, 400.7g: "If that spell would be put into your graveyard, exile it instead" — the spell cast using this permission is exiled instead of entering a graveyard from the stack; requires once and castOnly | ## Minimal form ```json {"effect":"playFromGraveyard","graveyardReplacement":"exile"} ``` The engine reads that minimal form as: “you may play lands and cast spells from your graveyard this turn”. ## Stock examples - **Graveyard Rehearsal** — “” ```json {"effect":"playFromGraveyard","filter":{"anyTypes":["Instant","Sorcery"]}} ``` - **Chainer, Nightmare Adept** — “” ```json {"effect":"playFromGraveyard","filter":{"types":["Creature"]},"castOnly":true,"once":true} ``` - **Zul Ashur, Lich Lord** — “” ```json {"effect":"playFromGraveyard","target":{"of":"object","mode":"chosen","zone":"graveyard","filter":{"types":["Creature"],"subtypes":["Zombie"],"owner":"you"}},"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) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive