# Drawstep engine · Values · `commanderCasts` > Commander casts — CR 903.8: times the player cast their commander from the command zone this game. 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#commanderCasts ## Where it goes A number: `{ "kind": "commanderCasts", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `of` | `"triggering"` | no | CR 903.8: only the triggering commander, including this cast | ## Minimal form ```json {"kind":"commanderCasts","of":"triggering"} ``` The engine reads that minimal form as: “the number of times it's been cast from the command zone this game”. ## Stock examples - **Study Hall** — “{1}, {T}: Add one mana of any color. When you spend this mana to cast your commander, scry X, where X is the number of times it's been cast from the command zone this game.” ```json {"kind":"commanderCasts","of":"triggering"} ``` - **Opal Palace** — “{1}, {T}: Add one mana of any color in your commander's color identity. If you spend this mana to cast your commander, it enters with a number of additional +1/+1 counters on it equal to the number of times it's been cast from the command zone this game.” ```json {"kind":"commanderCasts","of":"triggering"} ``` ## 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