# Drawstep engine · Conditions · `castAfterExile` > Cast after exile — CR 702.143c, 702.170: the card was foretold/plotted immediately before casting, even if another cost was used; excludes spell copies. 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#castAfterExile ## Where it goes A condition: `{ "kind": "castAfterExile", … }` — 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 | Field | Type | Required | Description | |---|---|---|---| | `designation` | `"foretold" \| "plotted"` | yes | How the card was exiled before it was cast: foretold or plotted | ## Minimal form ```json {"kind":"castAfterExile","designation":"foretold"} ``` The engine reads that minimal form as: “this spell was foretold”. ## Stock examples - **Iteration 53 Foretold** — “” ```json {"kind":"castAfterExile","designation":"foretold"} ``` - **Iteration 53 Plotted** — “” ```json {"kind":"castAfterExile","designation":"plotted"} ``` ## 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