# Drawstep engine · Effects · `flip` > Flip — CR 710.2-4: flip a flip permanent; already flipped permanents stay flipped. 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/effects#flip ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "flip", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | no | What it acts on (TargetDef) | ## Minimal form ```json {"effect":"flip"} ``` The engine reads that minimal form as: “flip ~”. ## Stock examples - **Flip Witness** — “Flip target creature.” ```json {"effect":"flip","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` - **Faithful Squire** — “At the beginning of the end step, if there are two or more ki counters on this creature, you may flip it.” ```json {"effect":"flip","target":{"of":"object","mode":"self"}} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.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