# Drawstep engine wiki — Triggers > Trigger events and the fields that narrow them: who, which object, intervening conditions. Engine: Magic: The Gathering (`mtg`). Page: https://drawstep.xyz/wiki/mtg/triggers · Raw Markdown: https://drawstep.xyz/wiki/mtg/triggers.md · Complete AI pack (every topic in one document, with the output contract and worked examples): https://drawstep.xyz/wiki/drawstep-mtg-ai-pack.md. This page is generated from Drawstep's card schema; field names and discriminators are exact. A card definition is one JSON object; anything the vocabulary cannot express goes verbatim into `unparsed` instead of being approximated. ## Triggers (`TriggerDef`) Used as `{ kind: "triggered", trigger: {…}, effects: […] }`. | Field | Type | Required | Description | |---|---|---|---| | `causedBy` | `"opponent"` | no | CR 701.9a, 603.2: the event was caused by a spell or ability an opponent of this ability's controller controls ("a spell or ability an opponent controls causes you to discard", "… destroys a noncreature permanent you control"); costs and game rules cause nothing. Player selector causeController is that spell's or ability's controller | | `cycleOrDiscard` | `boolean` | no | CR 702.29c: render a discards trigger as cycle or discard; cycling discards once, so no separate cycled event is listened to | | `oneOrMore` | `boolean` | no | CR 603.2c, 510.2: one trigger per simultaneous entry, departure, death, zone change, exile, discard, mill, sacrifice, token creation, counter placement, tap, attack, or block event. triggering selects the whole matching group; triggeringCount records its size. Combat damage to players groups separately per damaged player; for isDealtDamage, simultaneous combat damage received by the subject is one trigger with the total amount (first strike and regular damage are separate events). That is the default for every isDealtDamage trigger that has no other / by and whose effects don't read triggeringOther: a creature blocked by two creatures triggers once (Boros Reckoner, Wrathful Raptors). Set oneOrMore: false to keep one trigger per damage source. For dealsDamage / dealsCombatDamage, "one or more deal damage" groups the simultaneous damage of the matching sources (Francisco, Fowl Marauder) | | `oneOrMoreRecipients` | `boolean` | no | CR 603.2c, 120.2b: dealsDamage / dealsCombatDamage — "deals damage to one or more ": one trigger per damage event of each matching source, however many recipients that event dealt damage to (Red Terror, Briarbridge Patrol). The source is still singular ("a red source you control") | | `perPlayer` | `boolean` | no | CR 603.2c, 508.1: group matching attackers by attacked player, unblocked attackers by attacking player; for discards, sacrificed and tokenCreated group by the acting player (a player discards one or more cards) | | `acrossPlayers` | `boolean` | no | CR 603.2c: with oneOrMore on dealsCombatDamageToPlayer or milled, triggeringPlayer includes every player affected by the simultaneous event | | `damageTo` | `"you" \| "opponent" \| "any" \| "playerOrBattle" \| "playerOrPlaneswalker" \| "enchantedPlayer" \| "grantor"` | no | CR 603.1, 120.1: damage recipient must be a player with this relation to the ability controller (any: any player); playerOrBattle / playerOrPlaneswalker also accept damage dealt to a battle / planeswalker. grantor: the player who controlled the effect that granted this ability ("the player who cast Hellish Rebuke"), fixed as the grant resolved (CR 611.2c). Relations are to this ability's controller, not to the damage source | | `abilityEvent` | `"enters" \| "leaves" \| "dies" \| "attacks" \| "attacksAlone" \| "enlists" \| "blocks" \| "becomesBlocked" \| "dealsCombatDamage" \| "dealsCombatDamageToPlayer" \| "dealsDamage" \| "isDealtDamage" \| "damagePrevented" \| "castSpell" \| "state" \| "upkeep" \| "drawStep" \| "precombatMain" \| "postcombatMain" \| "mainPhase" \| "beginCombat" \| "declareAttackersStep" \| "endStep" \| "cleanupStep" \| "landfall" \| "crimeCommitted" \| "expend" \| "lifeGained" \| "lifeLost" \| "playerLost" \| "discards" \| "milled" \| "sacrificed" \| "destroyed" \| "becomesTapped" \| "becomesUntapped" \| "controlLost" \| "countersPlaced" \| "countersRemoved" \| "becomesTarget" \| "chapter" \| "cycled" \| "foretold" \| "plotted" \| "scried" \| "surveilled" \| "proliferated" \| "transformed" \| "specializes" \| "conjured" \| "sought" \| "turnedFaceUp" \| "drawsCard" \| "revealedFirstDraw" \| "tokenCreated" \| "mutates" \| "becomesDay" \| "becomesNight" \| "dayNightChanges" \| "copiedSpell" \| "becameMonarch" \| "lostGame" \| "ringTempted" \| "tookInitiative" \| "ventured" \| "completedDungeon" \| "designated" \| "endCombat" \| "unblocked" \| "exiled" \| "countered" \| "phasedIn" \| "speedIncreased" \| "reachedMaxSpeed" \| "explored" \| "connived" \| "evolves" \| "fights" \| "amassed" \| "investigated" \| "collectedEvidence" \| "discovered" \| "giftGiven" \| "paired" \| "becameSaddled" \| "becameCrewed" \| "levelGained" \| "solved" \| "roomUnlocked" \| "doorUnlocked" \| "zoneChange" \| "coinFlipped" \| "dieRolled" \| "clashed" \| "diceRolled" \| "youAttack" \| "visited" \| "attractionOpened" \| "cranked" \| "contraptionAssembled" \| "stickerPlaced" \| "facedDilemma" \| "setInMotion" \| "tappedForMana" \| "manaProduced" \| "activatesAbility" \| "abilityTriggered" \| "landPlayed" \| "phasedOut" \| "shufflesLibrary" \| "searchesLibrary" \| "crews" \| "saddles" \| "lifePaid" \| "attached" \| "unattached"` | no | CR 603.2: abilityTriggered only — the event that caused the triggered ability, which must concern the ability's source ("a creature entering … causes a triggered ability of that creature to trigger": enters) | | `event` | `"enters" \| "leaves" \| "dies" \| "attacks" \| "attacksAlone" \| "enlists" \| "blocks" \| "becomesBlocked" \| "dealsCombatDamage" \| "dealsCombatDamageToPlayer" \| "dealsDamage" \| "isDealtDamage" \| "damagePrevented" \| "castSpell" \| "state" \| "upkeep" \| "drawStep" \| "precombatMain" \| "postcombatMain" \| "mainPhase" \| "beginCombat" \| "declareAttackersStep" \| "endStep" \| "cleanupStep" \| "landfall" \| "crimeCommitted" \| "expend" \| "lifeGained" \| "lifeLost" \| "playerLost" \| "discards" \| "milled" \| "sacrificed" \| "destroyed" \| "becomesTapped" \| "becomesUntapped" \| "controlLost" \| "countersPlaced" \| "countersRemoved" \| "becomesTarget" \| "chapter" \| "cycled" \| "foretold" \| "plotted" \| "scried" \| "surveilled" \| "proliferated" \| "transformed" \| "specializes" \| "conjured" \| "sought" \| "turnedFaceUp" \| "drawsCard" \| "revealedFirstDraw" \| "tokenCreated" \| "mutates" \| "becomesDay" \| "becomesNight" \| "dayNightChanges" \| "copiedSpell" \| "becameMonarch" \| "lostGame" \| "ringTempted" \| "tookInitiative" \| "ventured" \| "completedDungeon" \| "designated" \| "endCombat" \| "unblocked" \| "exiled" \| "countered" \| "phasedIn" \| "speedIncreased" \| "reachedMaxSpeed" \| "explored" \| "connived" \| "evolves" \| "fights" \| "amassed" \| "investigated" \| "collectedEvidence" \| "discovered" \| "giftGiven" \| "paired" \| "becameSaddled" \| "becameCrewed" \| "levelGained" \| "solved" \| "roomUnlocked" \| "doorUnlocked" \| "zoneChange" \| "coinFlipped" \| "dieRolled" \| "clashed" \| "diceRolled" \| "youAttack" \| "visited" \| "attractionOpened" \| "cranked" \| "contraptionAssembled" \| "stickerPlaced" \| "facedDilemma" \| "setInMotion" \| "tappedForMana" \| "manaProduced" \| "activatesAbility" \| "abilityTriggered" \| "landPlayed" \| "phasedOut" \| "shufflesLibrary" \| "searchesLibrary" \| "crews" \| "saddles" \| "lifePaid" \| "attached" \| "unattached"` | yes | Which event is counted | | `by` | `"you" \| "opponent" \| "any" \| "notYou" \| "hostController" \| "enchantedPlayer" \| "chosenPlayer"` | no | Whose action/step: you, an opponent, anyone, the enchanted permanent's current controller, the enchanted player, or the player chosen as the source entered (CR 303.4, 503.1, 603.2b, 607.2d) | | `together` | `boolean` | no | CR 805.4d: a step trigger worded for the players whose turn it is together — "at the beginning of your opponents' end step, they …" (by: opponent). With shared team turns it triggers once for the active team and triggeringPlayer ("they") is every player of it: counts add up and a cost they may pay is paid by the team together from all their permanents. Otherwise it reads like each opponent's step | | `filter` | `ObjectFilter` | no | Which object the event concerns (self: true for "when ~") | | `damageKind` | `"combat" \| "noncombat"` | no | CR 603.2, 120.1: constrain a damage event to combat or noncombat damage | | `damagedPlayer` | `"you" \| "opponent" \| "any" \| "notYou"` | no | Legacy alias of damageTo for dealsDamage / isDealtDamage (older custom cards): the damaged player must have this relation to the ability's controller; permanent damage does not match. New cards use damageTo | | `targets` | `ObjectFilter` | no | For castSpell / activatesAbility: the spell or ability targets at least one matching object; triggers once regardless of how many targets match (CR 603.2, 601.2c, 602.2b). With targetsPlayer, either suffices | | `targetsOnly` | `ObjectFilter` | no | CR 601.2c, 602.2b, 115.1: castSpell / activatesAbility — "a spell that targets only ": it has one or more targets, none a player or stack object, all the same object, which matches this filter ("targets only Zada", "targets only a single creature you control"). Choosing that object for each instance of "target" still qualifies | | `targetsPlayer` | `"you" \| "opponent" \| "any" \| "notYou"` | no | CR 115.1, 601.2c: castSpell / activatesAbility — the spell or ability targets at least one player with this relation to this ability's controller ("a spell that targets you or a creature you control": you, with targets; either suffices) | | `minTargets` | `number` | no | CR 115.1, 601.2c: castSpell — the spell has at least this many targets, counting each instance of the word target ("a spell with one or more targets"); value triggering targets reads how many | | `spellOrdinal` | `number` | no | CR 601.2i, 603.2: this player's Nth spell matching filter this turn; checked when cast, including spells cast before this source entered | | `totalSpells` | `boolean` | no | CR 601.2i, 603.2: spellOrdinal counts every player's spells this turn ("the fourth spell of a turn is cast", "the first noncreature spell of a turn is cast") | | `threshold` | `number` | no | CR 700.14: expend N triggers when a mana payment to cast a spell crosses N mana spent casting spells this turn | | `other` | `ObjectFilter` | no | The other object of the event must match — for blocks the creature blocked, for becomesBlocked the blocking creature, for dealsDamage the permanent dealt damage, for isDealtDamage the damage's source, for explored the card revealed ("explores a land card", CR 701.44a) ("whenever ~ becomes blocked by a creature"). The ability triggers once per matching object; target mode triggeringOther is that object | | `chapter` | `number` | no | Saga chapter number this trigger belongs to (`event: "chapter"`) | | `finalChapter` | `boolean` | no | CR 714.2c: a chapter trigger on the final chapter of a Saga that `filter` matches ("the final chapter ability of a Saga you control triggers") | | `minAmount` | `number` | no | CR 120.4: minimum damage actually dealt in this event after prevention and replacement | | `excess` | `boolean` | no | CR 120.4a: isDealtDamage with damageKind noncombat — only a permanent dealt excess damage (beyond lethal) in this event; triggerAmount is the excess ("is dealt excess noncombat damage, amass Orcs X, where X is that excess damage") | | `minCount` | `number` | no | CR 603.2c: with oneOrMore, the simultaneous event must include at least this many matching objects ("When four or more creatures attack you") | | `targetPlayer` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "replacedPlayer" \| "damageSourceController" \| "causeController" \| "affectedController" \| "affectedOwner" \| "triggeringController" \| "triggeringOwner" \| "triggeringOtherController" \| "triggeringOtherOwner" \| "current" \| "previousPlayer" \| "mostLife" \| "leastLife" \| "mostCardsInHand" \| "fewestCardsInHand" \| "enchantedPlayer" \| "yourTeam" \| "chosenPlayer" \| "playerToYourLeft" \| "playerToYourRight" \| "attackedPlayers" \| "attackingOpponents" \| "attackedBySourceThisTurn" \| "attackedBySourceLastCombat" \| object` | no | CR 603.2e, 115.1: becomesTarget for a player — the selected player becomes the target of a spell or ability ("When the chosen player … becomes the target of a spell or ability") | | `targetPermanent` | `boolean` | no | CR 110.1, 603.2e: becomesTarget only for an object on the battlefield; excludes graveyard cards and spells | | `targetedBy` | `"spell" \| "ability"` | no | CR 115.1, 603.2e: kind of stack object newly targeting the subject; other can filter that object's source | | `equipOnly` | `boolean` | no | CR 702.6: only an attachment made by resolving an equip ability | | `damageAbilityOnly` | `boolean` | no | For activatesAbility, require a damage instruction in the announced ability. For dealsDamage, require damage dealt directly by a resolving activated ability of that source | | `counter` | `string` | no | CR 122.1: counter kind required for a countersPlaced / countersRemoved trigger | | `eachCounter` | `boolean` | no | CR 603.2c, 122.6: trigger once for each counter placed / removed, rather than once per batch | | `lastCounter` | `boolean` | no | CR 122.1, 702.62a: countersRemoved — only a removal that left none of counter on the object ("When the last time counter is removed from this card") | | `placedBy` | `"you" \| "opponent" \| "any" \| "notYou"` | no | CR 122.1, 609.4: countersPlaced — the player who put the counters (controller of the spell or ability that put them), relative to this ability's controller; may differ from the permanent's controller | | `permanentOrPlayer` | `boolean` | no | CR 122.1, 110.1: countersPlaced "on a permanent or player" — counters put on a player qualify, and an object only while it is a permanent (not a card in exile or on the stack). With oneOrMore, each permanent or player given counters in one simultaneous event triggers once | | `performedBy` | `"you" \| "opponent" \| "any" \| "notYou"` | no | CR 603.2, 608.2: the player who performed the action, relative to this ability's controller — becomesTapped: who tapped it (the controller of the spell or ability whose effect tapped it, otherwise the player tapping it for a cost or an attack: "Whenever you tap an untapped creature an opponent controls"); turnedFaceUp: who turned it face up ("Whenever you turn a permanent face up"). May differ from the permanent's controller | | `ownLibrary` | `boolean` | no | CR 701.23: searchesLibrary only when the searching player searches their own library, including failing to find | | `level` | `number` | no | CR 716.2: Class level just reached for levelGained | | `thisDoor` | `boolean` | no | CR 709.5: for doorUnlocked, "When you unlock this door" — only the unlocking of the half printing this ability | | `designation` | `string` | no | For event = designated: which designation | | `from` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | CR 603.6: for zoneChange or enters, origin zone (omit for any origin); for castSpell, the zone the spell was cast from | | `notTo` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | CR 603.6c, 700.4: exclude this destination from leaves; notTo graveyard means without dying | | `fromZones` | `("battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command")[]` | no | CR 603.6, 603.2c: any of these origin zones qualifies for the same zone-change trigger; oneOrMore batches across all origins (Laelia) | | `to` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | For event = zoneChange: destination zone | | `notFrom` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | CR 603.6a: exclude this origin zone for enters, castSpell or zoneChange (paradox, Disa the Restless) | | `resolutionGroup` | `string` | no | CR 608.2: event alternatives of one printed ability share this resolution counter | | `condition` | `ConditionDef` | no | A ConditionDef that must hold | | `eventCondition` | `ConditionDef` | no | Restriction checked only when the event occurs, such as during your turn or while you control a Dinosaur (CR 603.2); not an intervening if | | `firstEachTurn` | `boolean` | no | Triggers only the first time each turn (valiant) | | `onceEachTurnGroup` | `string` | no | CR 603.2: shared limiter for event alternatives of the same printed ability | | `onceEachTurn` | `boolean` | no | CR 101.1, 603.2: this ability triggers only once each turn, regardless of extra trigger effects | | `onceEachCombat` | `boolean` | no | This ability can trigger once in each combat phase, including additional combats | | `maxTriggersPerTurn` | `number` | no | CR 101.1, 603.2: caps the number of times this ability triggers each turn, including additional triggers | | `exceptFirstInDrawStep` | `boolean` | no | drawsCard: "except the first one they draw in each of their draw steps" (Orcish Bowmasters) — the first card the active player draws in their draw step doesn't trigger it | | `highestNatural` | `boolean` | no | CR 706.2, 603.2: dieRolled — the die's natural result (before modifiers) was its highest, a d20's 20 ("Whenever you roll a die's highest natural result"); ignored rolls don't count | | `exceptAttackDeclaration` | `boolean` | no | CR 508.1f, 603.2: becomesTapped — a creature tapped because it is being declared as an attacker doesn't trigger it ("if it isn't being declared as an attacker") | | `payment` | `{ for?: "spell" \| "ability"; source?: ObjectFilter; notOwnAbility?: boolean }` | no | CR 118.3, 601.2h, 602.2b: the event was a payment — for sacrificed, "to pay a cost"; lifePaid always is | | `onlyOnce` | `boolean` | no | "This ability triggers only once.": triggers once for this object across turns and controllers; a zone change makes a new object that can trigger again (CR 400.7) | | `oncePerBattle` | `boolean` | no | Campaign: triggers once per physical card instance across turns and zone changes | | `manaTypes` | `string[] \| "chosen"` | no | CR 106.1b, 605.1b: for tappedForMana or manaProduced, the actual production includes a listed mana type, or this source's chosen color | | `abilityKind` | `"nonMana" \| "loyalty" \| "boast" \| "exhaust" \| "ninjutsu" \| "powerUp" \| "crew" \| "saddle" \| "cycling" \| "outlast" \| "embalm" \| "eternalize"` | no | CR 602.2, 605.1a, 606.3: for activatesAbility, the kind of activated ability: nonMana ("that isn't a mana ability"), loyalty, or a keyword ability's activation (boast, exhaust, ninjutsu, powerUp, crew, saddle, cycling) | | `stickerKind` | `"name" \| "art" \| "ability" \| "pt"` | no | CR 123.3 (Unfinity): for stickerPlaced, only a sticker of this kind ("put an ability sticker on a creature") | Events (`event`): - `enters` — An object entered the battlefield (`filter.self` for “when ~ enters”). - `leaves` — An object left the battlefield. - `dies` — A creature was put into a graveyard from the battlefield. - `attacks` — A creature was declared as an attacker. - `attacksAlone` — A creature attacked alone. - `enlists` — Whenever a creature enlists another creature (CR 702.154). - `blocks` — A creature was declared as a blocker. - `becomesBlocked` — An attacking creature became blocked. - `dealsCombatDamage` — An object dealt combat damage. - `dealsCombatDamageToPlayer` — An object dealt combat damage to a player. - `dealsDamage` — An object dealt damage (any kind). - `isDealtDamage` — An object was dealt damage. - `damagePrevented` — Whenever damage that would be dealt to you is prevented — once per prevention effect for simultaneous damage (CR 615.13). - `castSpell` — A player cast a spell (`by`, `filter`, `from` / `notFrom`). - `state` — A state trigger (CR 603.8): triggers whenever `eventCondition` is true and the ability isn't already on the stack ("when you control no Islands, sacrifice ~"). Requires `eventCondition`. - `upkeep` — Beginning of an upkeep step (`by: you` for yours). - `drawStep` — Beginning of a draw step. - `precombatMain` — Beginning of a precombat main phase. - `postcombatMain` — Beginning of a postcombat main phase. - `mainPhase` — At the beginning of a main phase (either one; `by` scopes it to whose turn). - `beginCombat` — Beginning of combat. - `declareAttackersStep` — At the beginning of the declare-attackers step ("at the beginning of the declare attackers step on each opponent's turn"). - `endStep` — Beginning of an end step. - `cleanupStep` — At the beginning of the cleanup step. - `landfall` — A land entered under a player's control. - `crimeCommitted` — Whenever a player commits a crime: targets an opponent, their permanents or cards in their graveyard with a spell, ability activation or trigger (CR 700.13). - `expend` — Whenever you expend N — spend your Nth total mana on spells this turn (`threshold`, CR 700.14). - `lifeGained` — A player gained life. - `lifeLost` — A player lost life. - `playerLost` — Whenever a player (`by`) loses the game, for any reason, seen after they have left a game that goes on (CR 104.3, 800.4a): "whenever a player / an opponent loses the game". A subject read through the source ("when enchanted player loses the game") is `lostGame`. - `discards` — A player discarded a card. - `milled` — Whenever a card is milled (CR 701.17; `oneOrMore` treats a simultaneous mill as one event). - `sacrificed` — A player sacrificed a permanent. - `destroyed` — Whenever a permanent is destroyed — by an effect or by lethal damage (CR 701.8a, 704.5g) — looking back at it on the battlefield; `causedBy: "opponent"` for "a spell or ability an opponent controls destroys …" (its controller is the selector `causeController`). - `becomesTapped` — An object became tapped. - `becomesUntapped` — An object became untapped. - `controlLost` — Whenever control of the object changes away from its controller ("when you lose control of ~"). - `countersPlaced` — Counters were put on an object. - `countersRemoved` — Whenever counters are removed from a permanent (`who` = its controller; `counter` narrows the kind). - `becomesTarget` — An object became the target of a spell or ability. - `chapter` — A Saga's chapter ability (`chapter: N`). - `cycled` — This card was cycled. - `foretold` — Whenever a card is foretold (exiled face down with foretell). - `plotted` — When a card becomes plotted — exiled by the plot special action (CR 702.170a); the card sees it from exile (`filter: { self: true }`). - `scried` — Whenever a player scries (after the scry, even of an empty library; scry 0 doesn't trigger). - `surveilled` — Whenever a player surveils. - `proliferated` — Whenever a player proliferates (even if nothing was chosen). - `transformed` — An object transformed. - `specializes` — Whenever a permanent specializes (Alchemy). - `conjured` — Whenever a player (`by`) conjures cards (Alchemy; a spellbook draft is not conjuring). `oneOrMore` triggers once per conjure; `filter` narrows the cards. - `sought` — Whenever a player (`by`) seeks cards (Alchemy); `oneOrMore` triggers once per seek. - `turnedFaceUp` — An object was turned face up. - `drawsCard` — A player drew a card. - `revealedFirstDraw` — Whenever the controller reveals the first card they draw each turn under a `revealFirstDraw` rule (CR 701.20a; Primitive Etchings, Inquisitor Eisenhorn); the triggering object is the revealed card. - `tokenCreated` — A token was created. - `mutates` — Whenever this creature mutates (a mutating spell merges with it). - `becomesDay` — Whenever it becomes day. - `becomesNight` — Whenever it becomes night. - `dayNightChanges` — Whenever day becomes night or night becomes day. - `copiedSpell` — Whenever a player copies a spell. - `becameMonarch` — Whenever a player becomes the monarch. - `lostGame` — When a player read through the source (`by`: enchanted / the chosen player) loses the game — as they lose, before they leave, so the Curse still sees who it enchants (CR 104.3, 800.4a). Any other subject is `playerLost`. - `ringTempted` — Whenever the Ring tempts a player. - `tookInitiative` — Whenever a player takes the initiative. - `ventured` — Whenever a player ventures into the dungeon. - `completedDungeon` — Whenever a player completes a dungeon. - `designated` — An object gained a designation (`designation`: goaded, exerted, …). - `endCombat` — At end of combat (the end-of-combat step). - `unblocked` — Whenever an attacking creature becomes unblocked (no blockers were declared for it). - `exiled` — Whenever an object is put into exile (from any zone; `from` narrows it). - `countered` — Whenever a spell is countered. - `phasedIn` — Whenever a permanent phases in. - `speedIncreased` — Whenever a player's speed increases (Start your engines!). - `reachedMaxSpeed` — Whenever a player reaches max speed. - `explored` — Whenever a creature explores. - `connived` — Whenever a creature connives. - `evolves` — Whenever a creature evolves — its evolve ability resolved and put +1/+1 counters on it (CR 702.100d). - `fights` — Whenever a creature fights another (`other` narrows the opponent, CR 701.14); each fighter is its own event. - `amassed` — Whenever a player amasses. - `investigated` — Whenever a player (`by`) investigates — once per investigation ("investigate twice" is two events, CR 701.16a). - `collectedEvidence` — Whenever a player (`by`) collects evidence — exiles cards with the needed total mana value from their graveyard (CR 701.59a); not when they couldn't or declined. - `discovered` — Whenever a player (`by`) discovers N (CR 701.57a); `triggerAmount` is N, also when no card was found. - `giftGiven` — Whenever a player (`by`) gives a gift they promised (CR 702.174a); the triggering player is the giver. - `paired` — Whenever a creature becomes paired (soulbond). - `becameSaddled` — Whenever a Mount becomes saddled. - `becameCrewed` — Whenever a Vehicle becomes crewed — one of its crew abilities resolved, even if it already was a creature (CR 702.122b); `triggerAmount` is the number of creatures tapped to crew it. - `levelGained` — Whenever a Class gains a level (`level` = the level reached). - `solved` — Whenever a Case becomes solved. - `roomUnlocked` — Whenever a Room becomes fully unlocked. - `doorUnlocked` — Whenever a door of a Room is unlocked (`thisDoor` for the half printing the ability). - `zoneChange` — Any zone change, narrowed with `from` / `to`. - `coinFlipped` — Whenever a player flips a coin. - `dieRolled` — Whenever a player rolls a die (once per die). - `clashed` — Whenever a player (`by`) clashes — both players of a clash do, whoever began it (CR 701.30); `triggerAmount` is 1 when that player won ("whenever you clash and win"). - `diceRolled` — Whenever a player rolls one or more dice (once per roll instruction). - `youAttack` — A player attacked with one or more creatures (once per combat). - `visited` — An Attraction was visited (“Visit —”). - `attractionOpened` — Whenever a player opens an Attraction. - `cranked` — Whenever a Contraption is cranked. - `contraptionAssembled` — Whenever a player assembles a Contraption. - `stickerPlaced` — Whenever a sticker is put on a permanent. - `facedDilemma` — Whenever a player faces a villainous choice. - `setInMotion` — When a scheme is set in motion (Archenemy). - `tappedForMana` — Whenever a permanent is tapped for mana (a {T} mana ability, CR 605.1b). - `manaProduced` — Whenever an ability produces mana, land abilities without {T} included (CR 106.3, 605.1b; `manaTypes` filters the mana made). - `activatesAbility` — Whenever a player activates an ability (`abilityKind` narrows it: nonMana, loyalty, boast, …). - `abilityTriggered` — Whenever a triggered ability of a matching source (`filter`) is put on the stack because of `abilityEvent` — an event that concerns that source ("a creature entering under an opponent's control causes a triggered ability of that creature to trigger", CR 603.2); `triggeringOther` is that ability, so `copyAbility` can copy it. - `landPlayed` — Whenever a player plays a land. - `phasedOut` — Whenever a permanent phases out. - `shufflesLibrary` — Whenever a player shuffles their library. - `searchesLibrary` — Whenever a player searches a library, even if nothing is found (CR 701.23; `ownLibrary`: their own). - `crews` — Whenever a creature crews a Vehicle. - `saddles` — Whenever a creature saddles a Mount. - `lifePaid` — Whenever a player pays life. - `attached` — Whenever an Aura, Equipment or Fortification becomes attached to a permanent. - `unattached` — Whenever an Aura, Equipment or Fortification becomes unattached from a permanent (CR 701.3), looking back at the former host. Conventions: "When ~ enters" = `{ event: "enters", filter: { self: true } }`; "Whenever a creature you control dies" = `{ event: "dies", filter: { types: ["Creature"], controller: "you" } }`; "At the beginning of your upkeep" = `{ event: "upkeep", by: "you" }`; "Whenever you cast a noncreature spell" = `{ event: "castSpell", by: "you", filter: { notTypes: ["Creature"] } }`; Saga chapters = `{ event: "chapter", chapter: 2 }`; landfall = `{ event: "landfall", by: "you" }`. ### Stock examples - `enters` — Cast Entry Watcher Study: “” → `{"event":"enters","filter":{"types":["Creature"],"controller":"you"},"condition":{"kind":"wasCast","by":"you"}}` - `leaves` — Nefarious Imp: “Whenever one or more permanents you control leave the battlefield, scry 1.” → `{"oneOrMore":true,"event":"leaves","filter":{"controller":"you"}}` - `dies` — Role-Wicked Study: “Create a wicked Role token attached to target creature.” → `{"event":"dies","filter":{"self":true}}` - `attacks` — Iter62 host: “” → `{"event":"attacks","filter":{"anyOf":[{"self":true},{"host":true}]}}` - `attacksAlone` — Derelict Attic: “When you unlock this door, you draw two cards and you lose 2 life.” → `{"event":"attacksAlone","filter":{"types":["Creature"],"controller":"you"}}` - `enlists` — Benalish Knight-Counselor: “Whenever Benalish Knight-Counselor enlists a creature, you get a one-time boon with "When you cast a creature spell, that creature enters with a +1/+1 counter on it."” → `{"event":"enlists","filter":{"self":true},"other":{"types":["Creature"]}}` - `blocks` — Badger Call Fixture: “Create a Giant Badger token.” → `{"event":"blocks","filter":{"self":true}}` - `becomesBlocked` — Blocked Cohort Witness: “Whenever one or more creatures you control become blocked, you gain 3 life.” → `{"oneOrMore":true,"event":"becomesBlocked","filter":{"types":["Creature"],"controller":"you"}}` - `dealsCombatDamage` — Iter62 combat-creature: “” → `{"event":"dealsCombatDamage","filter":{"self":true},"other":{"types":["Creature"]}}` - `dealsCombatDamageToPlayer` — Thieving Magpie: “Whenever Thieving Magpie deals damage to an opponent, draw a card.” → `{"event":"dealsCombatDamageToPlayer","filter":{"self":true}}` - `dealsDamage` — Damage Source Study: “” → `{"event":"dealsDamage","filter":{"controller":"you"},"damageKind":"noncombat","damagedPlayer":"opponent"}` - `isDealtDamage` — Iter62 damaged-min: “” → `{"oneOrMore":true,"event":"isDealtDamage","filter":{"self":true},"damageKind":"combat","minAmount":3}` - `damagePrevented` — Selfless Squire: “Whenever damage that would be dealt to you is prevented, put that many +1/+1 counters on this creature.” → `{"damageTo":"you","event":"damagePrevented"}` - `castSpell` — Iteration 71 X value: “” → `{"event":"castSpell","by":"you","filter":{"manaCostContains":"X"}}` - `state` — Sea Serpent: “When you control no Islands, sacrifice this creature.” → `{"event":"state","eventCondition":{"kind":"not","condition":{"kind":"controls","who":"you","filter":{"subtypes":["Island"]},"min":1}}}` - `upkeep` — Half-Shark, Half-: “At the beginning of your upkeep,” → `{"event":"upkeep","by":"you"}` - `precombatMain` — Frontier Siege: “At the beginning of each of your main phases, add {G}{G}.” → `{"event":"precombatMain","by":"you"}` - `postcombatMain` — Sphinx of the Second Sun: “At the beginning of each of your postcombat main phases, there is an additional beginning phase after this phase.” → `{"event":"postcombatMain","by":"you"}` - `mainPhase` — Duration Conduit: “” → `{"event":"mainPhase","by":"you"}` - `beginCombat` — Unnatural Growth: “At the beginning of each combat, double the power and toughness of each creature you control until end of turn.” → `{"event":"beginCombat","by":"any"}` - `declareAttackersStep` — Delayed-Return Study: “Exile target creature you control. Return it to the battlefield under your control tapped and attacking at the beginning of the declare attackers step on your next turn.” → `{"event":"declareAttackersStep","by":"you"}` - `endStep` — Shift Witness: “” → `{"event":"endStep","by":"any"}` - `cleanupStep` — Waylay: “Create three 2/2 white Knight creature tokens. Exile them at the beginning of the next cleanup step.” → `{"event":"cleanupStep","by":"any"}` - `landfall` — Graveyard Landfall: “Whenever a land you control enters, you may return this card from your graveyard to the battlefield.” → `{"event":"landfall","by":"you","filter":{"types":["Land"],"controller":"you"}}` - `crimeCommitted` — Iteration 71 crime: “” → `{"event":"crimeCommitted","by":"you"}` - `expend` — Wandertale Mentor: “Whenever you expend 4, put a +1/+1 counter on this creature.” → `{"event":"expend","by":"you","threshold":4}` - `lifeGained` — lifeGained Watcher: “Whenever you gain life, draw a card.” → `{"event":"lifeGained","by":"you"}` - `lifeLost` — lifeLost Watcher: “Whenever you lose life, draw a card.” → `{"event":"lifeLost","by":"you"}` - `playerLost` — Mourning Witness: “Whenever a player loses the game, put five +1/+1 counters on this creature.” → `{"event":"playerLost","by":"any"}` - `discards` — Iteration 71 discard-creature: “” → `{"event":"discards","by":"you","filter":{"types":["Creature"]}}` - `milled` — Glowing One: “Whenever a player mills a nonland card, you gain 1 life.” → `{"event":"milled","by":"any","filter":{"notTypes":["Land"]}}` - `sacrificed` — Iteration 71 sacrifice: “” → `{"event":"sacrificed","by":"opponent","filter":{"types":["Creature"]}}` - `destroyed` — Destruction Witness: “Whenever a spell or ability an opponent controls destroys a noncreature permanent you control, you may destroy target permanent that opponent controls.” → `{"causedBy":"opponent","event":"destroyed","filter":{"notTypes":["Creature"],"controller":"you"}}` - `becomesTapped` — Deeproot Pilgrimage: “Whenever one or more nontoken Merfolk you control become tapped, create a 1/1 blue Merfolk creature token with hexproof.” → `{"oneOrMore":true,"event":"becomesTapped","filter":{"subtypes":["Merfolk"],"controller":"you","isToken":false}}` - `becomesUntapped` — Iter141 Ninth Doctor: “Whenever Iter141 Ninth Doctor becomes untapped during your untap step, you get an additional upkeep step after this step.” → `{"event":"becomesUntapped","filter":{"self":true},"eventCondition":{"kind":"all","conditions":[{"kind":"isYourTurn"},{"kind":"phase","is":"untap"}]}}` - `countersPlaced` — Iter62 counter: “” → `{"event":"countersPlaced","filter":{"self":true},"counter":"+1/+1","eachCounter":true}` - `countersRemoved` — Aeon Chronicler: “Whenever a time counter is removed from this card while it's exiled, draw a card.” → `{"event":"countersRemoved","filter":{"self":true},"counter":"time","eachCounter":true}` - `becomesTarget` — Iter62 spell-target: “” → `{"event":"becomesTarget","filter":{"self":true},"targetedBy":"spell"}` - `chapter` — Iteration 71 saga: “” → `{"event":"chapter","chapter":1}` - `cycled` — Drannith Healer: “Whenever you cycle another card, you gain 1 life.” → `{"event":"cycled","by":"you","filter":{"other":true}}` - `plotted` — Plotted Witness: “When this card becomes plotted, you gain 3 life.” → `{"event":"plotted","filter":{"self":true}}` - `scried` — Chance-Met Elves: “Whenever you scry, put a +1/+1 counter on this creature. This ability triggers only once each turn.” → `{"event":"scried","by":"you","onceEachTurn":true}` - `surveilled` — Dimir Spybug: “Whenever you surveil, put a +1/+1 counter on this creature.” → `{"event":"surveilled","by":"you"}` - `proliferated` — Scheming Aspirant: “Whenever you proliferate, each opponent loses 2 life and you gain 2 life.” → `{"event":"proliferated","by":"you"}` - `specializes` — Klement, Death Acolyte: “When this creature specializes, create two 2/2 black Zombie creature tokens.” → `{"event":"specializes","filter":{"self":true}}` - `conjured` — Third Little Pig: “Whenever you conjure one or more other cards, Third Little Pig perpetually gets +1/+1. This ability also triggers if Third Little Pig is in your graveyard.” → `{"oneOrMore":true,"perPlayer":true,"event":"conjured","by":"you","filter":{"other":true}}` - `sought` — Vexyr, Ich-Tekik's Heir: “Whenever you seek one or more cards, create a 3/3 colorless Phyrexian Golem artifact creature token.” → `{"oneOrMore":true,"perPlayer":true,"event":"sought","by":"you"}` - `turnedFaceUp` — Hidden Stalker: “Morph {1}{U}. When Hidden Stalker is turned face up, draw a card.” → `{"event":"turnedFaceUp","filter":{"self":true}}` - `drawsCard` — Second Draw Values: “Whenever you draw your second card each turn, you gain 1 life.” → `{"event":"drawsCard","by":"you","eventCondition":{"kind":"compare","a":{"kind":"thisTurn","event":"cardsDrawn","who":"you"},"op":"==","b":2}}` - `revealedFirstDraw` — Primitive Etchings: “Whenever you reveal a creature card this way, draw a card.” → `{"event":"revealedFirstDraw","by":"you","filter":{"types":["Creature"]}}` - `tokenCreated` — Akim, the Soaring Wind: “Whenever you create one or more tokens for the first time each turn, create a 1/1 white Bird creature token with flying.” → `{"oneOrMore":true,"perPlayer":true,"event":"tokenCreated","by":"you","firstEachTurn":true}` - `mutates` — Gemrazer: “Whenever this creature mutates, destroy target artifact or enchantment an opponent controls.” → `{"event":"mutates","filter":{"self":true}}` - `copiedSpell` — Kalamax, the Stormsire: “Whenever you copy an instant spell, put a +1/+1 counter on Kalamax.” → `{"event":"copiedSpell","by":"you","filter":{"types":["Instant"]}}` - `lostGame` — Vengeance Witness: “When enchanted player loses the game, you draw two cards.” → `{"event":"lostGame","by":"enchantedPlayer"}` - `ringTempted` — Temptation Witness: “” → `{"event":"ringTempted","by":"you"}` - `designated` — Nef-Crop Entangler: “You may exert this creature as it attacks. When you do, it gets +1/+2 until end of turn.” → `{"event":"designated","filter":{"self":true},"designation":"exerted"}` - `endCombat` — End of Combat Witness: “At end of combat, you gain 1 life.” → `{"event":"endCombat","by":"any"}` - `unblocked` — Coveted Jewel: “Whenever one or more creatures an opponent controls attack you and aren't blocked, that player draws three cards and gains control of this artifact. Untap it.” → `{"oneOrMore":true,"perPlayer":true,"event":"unblocked","filter":{"types":["Creature"],"controller":"opponent","attackingPlayer":"you"}}` - `explored` — Exploration Witness: “Whenever a creature you control explores a land card, you gain 2 life.” → `{"event":"explored","filter":{"types":["Creature"],"controller":"you"},"other":{"types":["Land"]}}` - `evolves` — Evolving Witness: “Whenever this creature evolves, draw a card.” → `{"event":"evolves","filter":{"self":true}}` - `fights` — Fight Witness: “Whenever a creature you control fights, you gain 2 life.” → `{"event":"fights","filter":{"types":["Creature"],"controller":"you"}}` - `investigated` — Erdwal Illuminator: “Whenever you investigate for the first time each turn, investigate an additional time.” → `{"event":"investigated","by":"you","firstEachTurn":true}` - `collectedEvidence` — Evidence Examiner: “Whenever you collect evidence, investigate.” → `{"event":"collectedEvidence","by":"you"}` - `discovered` — Curator of Sun's Creation: “Whenever you discover, discover again for the same value. This ability triggers only once each turn.” → `{"event":"discovered","by":"you","onceEachTurn":true}` - `giftGiven` — Jolly Gerbils: “Whenever you give a gift, draw a card.” → `{"event":"giftGiven","by":"you"}` - `becameCrewed` — Crewed Vehicle Witness: “Whenever this Vehicle becomes crewed, you gain 2 life.” → `{"event":"becameCrewed","filter":{"self":true}}` - `levelGained` — Iter62 class: “” → `{"event":"levelGained","filter":{"self":true},"level":2}` - `doorUnlocked` — Derelict Attic: “When you unlock this door, you draw two cards and you lose 2 life.” → `{"event":"doorUnlocked","thisDoor":true}` - `zoneChange` — Grave Departure Witness: “Whenever a card leaves your graveyard, you gain 1 life.” → `{"event":"zoneChange","filter":{"owner":"you"},"from":"graveyard"}` - `coinFlipped` — Iteration 71 coin-win: “” → `{"event":"coinFlipped","by":"you","eventCondition":{"kind":"compare","a":{"kind":"triggerAmount"},"op":"==","b":1}}` - `dieRolled` — Netherese Puzzle-Ward: “Perfect Illumination — Whenever you roll a die's highest natural result, draw a card.” → `{"event":"dieRolled","by":"you","highestNatural":true}` - `clashed` — Sylvan Echoes: “Whenever you clash and win, you may draw a card.” → `{"event":"clashed","by":"you","eventCondition":{"kind":"compare","a":{"kind":"triggerAmount"},"op":"==","b":1}}` - `diceRolled` — Roll Total Witness: “Whenever you roll one or more dice, put a number of charge counters on this artifact equal to the result.” → `{"event":"diceRolled","by":"you"}` - `youAttack` — Humming-: “Whenever you attack with two or more creatures,” → `{"event":"youAttack","by":"you","condition":{"kind":"compare","a":{"kind":"count","filter":{"controller":"you","attacking":true}},"op":">=","b":2}}` - `visited` — Information Booth: “Visit — Draw a card.” → `{"event":"visited","filter":{"self":true}}` - `cranked` — Dispatch Dispensary: “Whenever you crank this Contraption, create a 2/2 black Rogue creature token with menace.” → `{"event":"cranked","filter":{"self":true}}` - `facedDilemma` — Melkotian Adjudicator: “Whenever you face a dilemma, put a +1/+1 counter on this creature.” → `{"event":"facedDilemma","by":"you"}` - `tappedForMana` — C.A.M.P.: “Whenever fortified land is tapped for mana, put a +1/+1 counter on target creature you control. If that creature shares a color with the mana that land produced, create a Junk token.” → `{"event":"tappedForMana","filter":{"host":true}}` - `manaProduced` — Caged Sun: “Whenever a land's ability causes you to add one or more mana of the chosen color, add an additional one mana of that color.” → `{"event":"manaProduced","by":"you","filter":{"types":["Land"]},"manaTypes":"chosen"}` - `activatesAbility` — Outlast Herald: “Whenever you activate this creature's outlast ability, create a 1/1 white Warrior creature token.” → `{"event":"activatesAbility","by":"you","filter":{"self":true},"abilityKind":"outlast"}` - `abilityTriggered` — Aboleth Spawn: “Probing Telepathy — Whenever a creature entering under an opponent's control causes a triggered ability of that creature to trigger, you may copy that ability. You may choose new targets for the copy.” → `{"abilityEvent":"enters","event":"abilityTriggered","filter":{"types":["Creature"],"controller":"opponent"}}` - `landPlayed` — Prosper, Tome-Bound: “Pact Boon — Whenever you play a card from exile, create a Treasure token.” → `{"event":"landPlayed","by":"you","from":"exile"}` - `searchesLibrary` — Archivist of Oghma: “Whenever an opponent searches their library, you gain 1 life and draw a card.” → `{"event":"searchesLibrary","by":"opponent","ownLibrary":true}` - `lifePaid` — Font of Agonies: “Whenever you pay life, put that many blood counters on this enchantment.” → `{"event":"lifePaid","by":"you"}` - `attached` — Bramble Elemental: “Whenever an Aura becomes attached to this creature, create two 1/1 green Saproling creature tokens.” → `{"event":"attached","filter":{"subtypes":["Aura"]},"other":{"self":true}}` - `unattached` — Grafted Wargear: “Whenever this Equipment becomes unattached from a permanent, sacrifice that permanent.” → `{"event":"unattached","filter":{"self":true}}`