# Drawstep engine · Values · `thisTurn` > This turn — Turn history: how many times something happened this turn (or last turn), optionally only to objects matching a look-back filter, by a player, or during 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/values#thisTurn ## Where it goes A number: `{ "kind": "thisTurn", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. Printed words that point here (search aliases): this turn died cast drew. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `filter` | `ObjectFilter` | no | CR 400.7, 608.2h look-back: count only events whose object matched this filter as the event happened (its characteristics, controller and counters then; tokens included). Allowed on every object event: entered, left, died, destroyed, sacrificed, cast, countered, drawn, discarded, exiled, returned to hand, left a graveyard, attacked, counters placed / removed | | `counter` | `string` | no | countersPlaced / countersRemoved: only counters of this kind | | `combat` | `boolean` | no | CR 506.1, 500.8: only events during the current combat phase count ("this combat"); 0 outside combat | | `event` | `"creaturesDied" \| "permanentsLeft" \| "permanentCardsToGraveyard" \| "cardsToGraveyard" \| "spellsCast" \| "instantsSorceriesCast" \| "noncreatureSpellsCast" \| "creatureSpellsCast" \| "cardsDrawn" \| "lifeGa …` | yes | The turn-history event counted. scried / surveilled: CR 701.22a / 701.25a actions by `who` (scry 0 is none); cardsCycled: CR 702.29a cards `who` cycled | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `lastTurn` | `boolean` | no | Read last turn instead of this turn | | `sinceYourLastTurn` | `boolean` | no | CR 500.1, 608.2h: every event since the end of the ability controller's most recent turn, across the turns in between and this one so far ("if no opponent cast a spell since your last turn ended"); since the game began before their first turn | | `beforeTriggering` | `boolean` | no | CR 603.2, 608.2h: "… you've cast before it this turn" (Thousand-Year Storm) — only the casts before the triggering spell, excluding it, fixed as it was cast (spells cast in response don't count). spellsCast / instantsSorceriesCast / creatureSpellsCast | ## Minimal form ```json {"kind":"thisTurn","event":"creaturesDied"} ``` The engine reads that minimal form as: “the number of creatures that died this turn”. ## Stock examples - **Two Spells Study** — “” ```json {"kind":"thisTurn","event":"spellsCast","who":"you"} ``` - **Exploration Insight** — “” ```json {"kind":"thisTurn","event":"permanentsExplored","who":"you"} ``` - **Any Cast** — “If a player cast a spell this turn, draw a card.” ```json {"kind":"thisTurn","event":"spellsCast","who":"eachPlayer"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.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