# Drawstep engine · Conditions · `castDuringMainPhase` > Cast during main phase — CR 601.2, 608.2h: you cast this spell during your main phase, captured when cast; uncast copies do not qualify. 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/conditions#castDuringMainPhase ## Where it goes A condition: `{ "kind": "castDuringMainPhase", … }` — in an `if` effect, a trigger's `condition` (intervening if), a static's `condition` ("as long as"), an activated ability's `onlyIf`, a replacement's `unless`. ## Fields No fields besides the discriminator. ## Minimal form ```json {"kind":"castDuringMainPhase"} ``` The engine reads that minimal form as: “you cast this spell during your main phase”. ## Stock examples - **Sphinx's Insight** — “Addendum — If you cast this spell during your main phase, you gain 2 life.” ```json {"kind":"castDuringMainPhase"} ``` - **Contractual Safeguard** — “Addendum — If you cast this spell during your main phase, put a shield counter on a creature you control.” ```json {"kind":"castDuringMainPhase"} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive