# Drawstep engine · Triggers · `youAttack` > You attack — A player attacked with one or more creatures (once per combat). 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/triggers#youAttack ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "youAttack", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. ## Fields No fields besides the discriminator. ## Stock examples - **Humming-** — “Whenever you attack with two or more creatures,” ```json {"event":"youAttack","by":"you","condition":{"kind":"compare","a":{"kind":"count","filter":{"controller":"you","attacking":true}},"op":">=","b":2}} ``` - **Iter62 attack-count** — “” ```json {"event":"youAttack","by":"you","eventCondition":{"kind":"compare","a":{"kind":"count","filter":{"types":["Creature"],"controller":"you","attacking":true}},"op":">=","b":2}} ``` - **Steady Officer** — “Whenever you attack, put a +1/+1 counter on this creature. Untap it.” ```json {"event":"youAttack","by":"you"} ``` ## Related - [Triggers](https://drawstep.xyz/wiki/mtg/triggers.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive