# Drawstep engine · Conditions · `playerIs` > Player is — CR 102.2-3, 109.5: the selected player is you or your opponent (teammates are not opponents); requires a nonempty selection, all matching. 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/conditions#playerIs ## Where it goes A condition: `{ "kind": "playerIs", … }` — in an `if` effect, a trigger's `condition` (intervening if), a static's `condition` ("as long as"), an activated ability's `onlyIf`, a replacement's `unless`. ## 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`) | | `is` | `"you" \| "opponent"` | yes | The phase / time of day being tested | ## Minimal form ```json {"kind":"playerIs","who":"you","is":"you"} ``` The engine reads that minimal form as: “you is you”. ## Stock examples - **Heartwood Storyteller** — “Whenever a player casts a noncreature spell, each of that player's opponents may draw a card.” ```json {"kind":"playerIs","who":"triggeringPlayer","is":"opponent"} ``` - **Standstill** — “When a player casts a spell, sacrifice this enchantment. If you do, each of that player's opponents draws three cards.” ```json {"kind":"playerIs","who":"triggeringPlayer","is":"opponent"} ``` - **Antagonism** — “At the beginning of each player's end step, this enchantment deals 2 damage to that player unless one of their opponents was dealt damage this turn.” ```json {"kind":"playerIs","who":"triggeringPlayer","is":"opponent"} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive