# Drawstep engine · Effects · `tokenCopyPerOpponent` > Token copy per opponent — For each opponent, create a token copy attacking that player (myriad / encore). 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#tokenCopyPerOpponent ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "tokenCopyPerOpponent", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | no | What it acts on (TargetDef) | | `haste` | `boolean` | no | The created tokens have haste | | `cleanup` | `"exileEndOfCombat" \| "sacrificeEndStep" \| "none"` | yes | What happens to the token copies: exiled at end of combat, sacrificed at the end step, or nothing | ## Minimal form ```json {"effect":"tokenCopyPerOpponent","cleanup":"exileEndOfCombat"} ``` The engine reads that minimal form as: “for each opponent, create a token copy of ~ that's tapped and attacking that player; exile them at end of combat”. ## 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