# Drawstep engine · Conditions · `attackedThisStep` > Attacked this step — CR 508.1, 508.6: you were declared attacked this declare attackers step; attacking your planeswalker or battle does not count. 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#attackedThisStep ## Where it goes A condition: `{ "kind": "attackedThisStep", … }` — 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 No fields besides the discriminator. ## Minimal form ```json {"kind":"attackedThisStep"} ``` The engine reads that minimal form as: “you've been attacked this step”. ## Stock examples - **Declared Defense** — “Cast this spell only during the declare attackers step and only if you've been attacked this step.” ```json {"kind":"attackedThisStep"} ``` ## 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