# Drawstep engine · Effects · `retarget` > Retarget — CR 115.7: change existing targets to legal targets, retaining count and division. single changes one target; to fixes the new recipient. 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#retarget ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "retarget", … }`. Steps resolve in order. Printed words that point here (search aliases): change the target of target spell or ability you may choose new targets redirect misdirection. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `to` | `TargetDef` | no | What it applies to (TargetDef) | | `single` | `boolean` | no | Change only one of the targets | | `optional` | `boolean` | no | "You may": the player chooses whether to do it | | `newTargets` | `boolean` | no | CR 115.7d: "you may choose new targets for …" — each target may be kept (even if illegal) or changed to a new legal target; the final set must be legal together | ## Minimal form ```json {"effect":"retarget","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` The engine reads that minimal form as: “change the target of target creature”. ## Stock examples - **Retarget Witness** — “” ```json {"effect":"retarget","target":{"of":"spellOrAbility","mode":"chosen"},"to":{"of":"object","mode":"self"},"single":true} ``` - **Redirect Witness** — “Change the target of target spell or ability with a single target.” ```json {"effect":"retarget","target":{"of":"spellOrAbility","mode":"chosen","targetCount":1}} ``` - **Divert** — “Change the target of target spell with a single target unless that spell's controller pays {2}.” ```json {"effect":"retarget","target":{"of":"spell","mode":"affected"}} ``` ## 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