# Drawstep engine · Statics & layers · `retainMana` > Retain mana — CR 106.4, 500.4, 613.11: this player's unspent mana does not empty as steps and phases end. 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/statics#retainMana ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "retainMana", … } }`. Applied continuously through the layer system. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | yes | Which player(s) — a player selector (default `you`) | | `colors` | `string[]` | no | Mana colors to retain; omitted means all types. Spending restrictions are preserved | ## Minimal form ```json {"type":"retainMana","who":"you"} ``` The engine reads that minimal form as: “you don't lose unspent mana as steps and phases end”. ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive