# Drawstep engine · Triggers · `activatesAbility` > Activates ability — Whenever a player activates an ability (`abilityKind` narrows it: nonMana, loyalty, boast, …). 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#activatesAbility ## Where it goes The `trigger` of a triggered ability: `{ "kind": "triggered", "trigger": { "event": "activatesAbility", … }, "effects": [ … ] }`. The common trigger fields (`filter`, `by`, `other`, `condition`, `damageKind`, `oneOrMore` …) are on the triggers page. ## Fields No fields besides the discriminator. ## Stock examples - **Outlast Herald** — “Whenever you activate this creature's outlast ability, create a 1/1 white Warrior creature token.” ```json {"event":"activatesAbility","by":"you","filter":{"self":true},"abilityKind":"outlast"} ``` - **Ertha Jo, Frontier Mentor** — “Whenever you activate an ability that targets a creature or player, copy that ability. You may choose new targets for the copy.” ```json {"event":"activatesAbility","by":"you","targets":{"types":["Creature"]},"targetsPlayer":"any"} ``` - **Ashnod Copier** — “Whenever you activate an ability of an artifact or creature that isn't a mana ability, if one or more permanents were sacrificed to activate it, you may copy that ability. You may choose new targets for the copy.” ```json {"event":"activatesAbility","by":"you","filter":{"anyTypes":["Artifact","Creature"]},"condition":{"kind":"compare","a":{"kind":"triggerAmount"},"op":">=","b":1},"abilityKind":"nonMana"} ``` ## 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