# Drawstep engine · Conditions · `triggeringMatches` > Triggering matches — The triggering object matches this filter, using last known information (CR 608.2h). 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#triggeringMatches ## Where it goes A condition: `{ "kind": "triggeringMatches", … }` — 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 | |---|---|---|---| | `filter` | `ObjectFilter` | yes | Which objects (ObjectFilter; set fields AND together) | | `atEvent` | `boolean` | no | CR 603.10a, 608.2h: use characteristics immediately before the triggering event, including counters on a departing permanent | | `batch` | `"any"` | no | CR 603.2c, 603.4: a one-or-more trigger — at least one object of the simultaneous event matches ("if one or more of them entered from a graveyard") | ## Minimal form ```json {"kind":"triggeringMatches","filter":{"types":["Creature"]},"batch":"any"} ``` The engine reads that minimal form as: “that permanent is a creature”. ## Stock examples - **Mutant Observer** — “” ```json {"kind":"triggeringMatches","filter":{"subtypes":["Mutant"]}} ``` - **Event Type Watch** — “Whenever a creature you control dies, if it was a Human, you gain 2 life.” ```json {"kind":"triggeringMatches","filter":{"subtypes":["Human"]},"atEvent":true} ``` - **Event Watch** — “Whenever a creature you control dies, if it had counters on it, draw a card.” ```json {"kind":"triggeringMatches","filter":{"hasCounter":"any"},"atEvent":true} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive