# Drawstep engine · Conditions · `isDefendingPlayer` > Is defending player — CR 506.2: the player (default you) is the defending player of the triggering attacking creature ("if you're the defending player"). 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#isDefendingPlayer ## Where it goes A condition: `{ "kind": "isDefendingPlayer", … }` — 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`. Printed words that point here (search aliases): if you're the defending player whenever a creature attacks and isn't blocked nature shields its own. ## 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`) | ## Minimal form ```json {"kind":"isDefendingPlayer"} ``` The engine reads that minimal form as: “you're the defending player”. ## Stock examples - **Kazuul, Tyrant of the Cliffs** — “Whenever a creature an opponent controls attacks, if you're the defending player, create a 3/3 red Ogre creature token unless that creature's controller pays {3}.” ```json {"kind":"isDefendingPlayer"} ``` ## 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