# Drawstep engine · Statics & layers · `gainControl` > Gain control — e.g. “you control ~”. 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#gainControl ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "gainControl", … } }`. Applied continuously through the layer system. Printed words that point here (search aliases): you control enchanted creature control magic. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `to` | `TargetDef` | yes | What it applies to (TargetDef) | ## Minimal form ```json {"type":"gainControl","to":{"of":"object","mode":"self"}} ``` The engine reads that minimal form as: “you control ~”. ## Stock examples - **Become the Pilot** — “You control enchanted creature.” ```json {"type":"gainControl","to":{"of":"object","mode":"host"}} ``` - **Control Magic** — “Enchant creature. You control enchanted creature.” ```json {"type":"gainControl","to":{"of":"object","mode":"host"}} ``` ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.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