# Drawstep engine · Replacements · `diesToExile` > Dies to exile — e.g. “if ~ would die, exile it instead”. 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/replacements#diesToExile ## Where it goes A replacement ability: `{ "kind": "replacement", "replacement": { "replaces": "diesToExile", … } }`. Printed words that point here (search aliases): if would die exile it instead. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `applyTo` | `TargetDef` | no | What the replacement watches (default the source itself; `mode: "all"` + filter for a group, a player selector for player events) | ## Minimal form ```json {"replaces":"diesToExile"} ``` The engine reads that minimal form as: “if ~ would die, exile it instead”. ## Related - [Replacements](https://drawstep.xyz/wiki/mtg/replacements.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