# Drawstep engine · Triggers · `endCombat` > End combat — At end of combat (the end-of-combat step). 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#endCombat ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "endCombat", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. ## Fields No fields besides the discriminator. ## Stock examples - **End of Combat Witness** — “At end of combat, you gain 1 life.” ```json {"event":"endCombat","by":"any"} ``` - **Delina, Wild Mage** — “1—14 | Create a tapped and attacking token that's a copy of that creature, except it's not legendary and it has "At end of combat, exile this token."” ```json {"event":"endCombat","by":"any"} ``` ## 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