# Drawstep engine · Effects · `copySpell` > Copy spell — Copy target spell (default: the source spell itself); `amount` copies (storm). 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#copySpell ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "copySpell", … }`. Steps resolve in order. Printed words that point here (search aliases): copy target spell fork. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `amount` | `ValueDef` | no | How many / how much (integer or ValueDef) | | `controller` | `"chosenOpponent" \| "you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| " …` | no | Who controls the copy (CR 707.10): chosenOpponent prompts the controller for an opponent as it resolves; any player selector names the copier directly (the Chain cycle) | | `newTargets` | `boolean` | no | CR 707.10: false retains targets; default true preserves legacy copies | | `except` | `{ keywords?: string[]; keywordAbilities?: KeywordAbilityDef[]; abilities?: any[]; addTypes?: string[]; addSubtypes?: string[]; setTypes?: string[]; setSubtypes?: string[]; removeSubtypes?: string[]; c …` | no | CR 707.9: exceptions the copies are made with ("the copy isn't legendary and has starting loyalty X"); a permanent spell's copy becomes a token with them | | `copyTargets` | `TargetDef` | no | CR 707.10d-e: one copy for each object this selects (amount and newTargets don't apply), every target of that copy changed to that object — "copy that spell for each other creature you control that the spell could target. Each copy targets a different one of those creatures", "The copy targets the chosen creature". An object that isn't a legal target for each instance of the word target gets no copy | ## Minimal form ```json {"effect":"copySpell"} ``` The engine reads that minimal form as: “copy this spell. You may choose new targets for the copy”. ## Stock examples - **Iteration 71 copy** — “” ```json {"effect":"copySpell","target":{"of":"spell","mode":"chosen"},"newTargets":true} ``` - **Copy Test** — “” ```json {"effect":"copySpell","target":{"of":"spell","mode":"chosen"}} ``` - **Replacement Spell Copy** — “” ```json {"effect":"copySpell","target":{"of":"spell","mode":"chosen"}} ``` ## 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) - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive