# Drawstep engine · Triggers · `attacks` > Attacks — A creature was declared as an attacker. 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#attacks ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "attacks", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. Printed words that point here (search aliases): whenever attacks whenever this creature attacks when declaring as an attacker attacking. ## Fields No fields besides the discriminator. ## Stock examples - **Iter62 host** — “” ```json {"event":"attacks","filter":{"anyOf":[{"self":true},{"host":true}]}} ``` - **Iteration 53 Nogi** — “” ```json {"event":"attacks","filter":{"self":true},"condition":{"kind":"controls","who":"you","filter":{"subtypes":["Dragon"]},"min":3}} ``` - **Role-Sorcerer Study** — “Create a sorcerer Role token attached to target creature.” ```json {"event":"attacks","filter":{"self":true}} ``` ## 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