# Drawstep engine · Effects · `exileUntilSourceLeaves` > Exile until source leaves — e.g. “exile target creature until ~ leaves the battlefield”. 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#exileUntilSourceLeaves ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "exileUntilSourceLeaves", … }`. Steps resolve in order. Printed words that point here (search aliases): exile until leaves the battlefield oblivion ring. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | ## Minimal form ```json {"effect":"exileUntilSourceLeaves","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` The engine reads that minimal form as: “exile target creature until ~ leaves the battlefield”. ## Stock examples - **Banish to Another Universe** — “When this enchantment enters, exile target nonland permanent an opponent controls until this enchantment leaves the battlefield.” ```json {"effect":"exileUntilSourceLeaves","target":{"of":"object","mode":"chosen","filter":{"notTypes":["Land"],"controller":"opponent"}}} ``` - **Banishing Light** — “When Banishing Light enters the battlefield, exile target nonland permanent an opponent controls until Banishing Light leaves the battlefield.” ```json {"effect":"exileUntilSourceLeaves","target":{"of":"object","mode":"chosen","filter":{"notTypes":["Land"],"controller":"opponent"}}} ``` - **Linked Duration Witness** — “” ```json {"effect":"exileUntilSourceLeaves","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"other":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