# Drawstep engine · Effects · `phaseOut` > Phase out — e.g. “target creature phases out”. 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#phaseOut ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "phaseOut", … }`. Steps resolve in order. Printed words that point here (search aliases): phase out phases out all permanents you control phase out teferi's protection phase out enchanted creature instead. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `untilSourceLeaves` | `boolean` | no | CR 702.26: "phases out until this enchantment leaves the battlefield" — no untap-step phase-in; it phases in immediately after the source leaves. Nothing phases out if the source already left | | `phaseInTapped` | `boolean` | no | With untilSourceLeaves: "Tap that creature as it phases in this way" — it phases in tapped (no becomes-tapped trigger) | ## Minimal form ```json {"effect":"phaseOut","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` The engine reads that minimal form as: “target creature phases out”. ## Stock examples - **Conditional Dismissal** — “” ```json {"effect":"phaseOut","target":{"of":"object","mode":"all","filter":{"types":["Creature"]},"player":"target","playerTarget":{"of":"player","mode":"chosen"}}} ``` - **Teferi's Protection** — “All permanents you control phase out.” ```json {"effect":"phaseOut","target":{"of":"object","mode":"all","filter":{"controller":"you"}}} ``` - **Vision Charm** — “• Choose a land type and a basic land type. Each land of the first chosen type becomes the second chosen type until end of turn.” ```json {"effect":"phaseOut","target":{"of":"object","mode":"chosen","filter":{"types":["Artifact"]}}} ``` ## 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