# Drawstep engine · Effects · `copyNextWithXMana` > Copy next with xmana — CR 603.7: this turn, the next spell cast with {X} in its mana cost or ability activated with {X} in its activation cost triggers a copy with optional new targets. 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#copyNextWithXMana ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "copyNextWithXMana", … }`. Steps resolve in order. ## Fields No fields besides the discriminator. ## Minimal form ```json {"effect":"copyNextWithXMana"} ``` The engine reads that minimal form as: “when you next cast a spell with {X} in its mana cost or activate an ability with {X} in its activation cost this turn, copy that spell or ability. You may choose new targets for the copy”. ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive