# Drawstep engine · Conditions · `sourceThisTurn` > Source this turn — The source attacked / entered / blocked / attacked or blocked / dealt combat damage this turn (or this combat). 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#sourceThisTurn ## Where it goes A condition: `{ "kind": "sourceThisTurn", … }` — 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 | |---|---|---|---| | `did` | `"attacked" \| "entered" \| "blocked" \| "attackedOrBlocked" \| "dealtCombatDamage" \| "exerted"` | yes | What the source did this turn | | `combat` | `boolean` | no | Only this combat phase counts (CR 506.1): "if this creature attacked or blocked this combat" | ## Minimal form ```json {"kind":"sourceThisTurn","did":"attacked"} ``` The engine reads that minimal form as: “~ attacked this turn”. ## Stock examples - **Combat Celebrant** — “If this creature hasn't been exerted this turn, you may exert it as it attacks. When you do, untap all other creatures you control and after this phase, there is an additional combat phase.” ```json {"kind":"sourceThisTurn","did":"exerted"} ``` ## 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