# Drawstep engine · Values · `spellsCastLastTurn` > Spells cast last turn — Spells cast during the previous turn — total, or the most by any single player. 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#spellsCastLastTurn ## Where it goes A number: `{ "kind": "spellsCastLastTurn", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `by` | `"total" \| "mostByOnePlayer"` | no | Count all spells cast last turn (`total`) or the most cast by one player | ## Minimal form ```json {"kind":"spellsCastLastTurn"} ``` The engine reads that minimal form as: “the number of spells cast last turn”. ## Stock examples - **Geier Reach Bandit** — “At the beginning of each upkeep, if no spells were cast last turn, transform this creature.” ```json {"kind":"spellsCastLastTurn"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive