# Drawstep engine wiki — Effects > Every one-shot effect the engine can resolve, with its fields, defaults and examples from stock cards. Engine: Magic: The Gathering (`mtg`). Page: https://drawstep.xyz/wiki/mtg/effects · Raw Markdown: https://drawstep.xyz/wiki/mtg/effects.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. ## Effects (`EffectDef`, discriminator `effect`) One-shot effects, resolved in order. Common optional fields: `target` (TargetDef), `who` (player selector), `amount` (ValueDef), `duration`, `if` / `optional` / `mayPay` / `unlessPays` wrappers. - `native` — A one-shot step carried out by the engine. Engine-implemented node: `id` names an implementation the game module registers; cards contain no code, and an id the running engine doesn't know rejects the card. `text` is the printed clause shown wherever the card is described. Fields: `id`: string — Registry id of an implementation this engine ships ("magic.keepOnePerTypeSacrificeRest"); the native page of each kind lists every id that exists. Never invent one; `params?`: object — Parameters the registered implementation validates and reads; each registered id documents its own; `text`: string — The printed clause this step stands for. - `tableRuling` — One step the table resolves by hand inside an otherwise automated ability (CR 100.7). The engine runs the trigger, costs, targets and the other effects, pauses here with the text, and records the table's outcome; in strict enforced play the step is inert and the card flagged. Prefer this over `unparsed` when the timing of the clause is clear and the card should stay playable. Fields: `text`: string — The printed instruction the table carries out by hand, verbatim; `ruling?`: "ante" | "subgame" | "physical" | "artReference" | "outsideGame" | "flavorReference" | "formatReference" | "other" — Why software cannot resolve it; defaults to other (a custom mechanic the vocabulary lacks); `prompts?`: string[] — Extra questions whose answers the table records ("Which Aura did you attach?"). - `drawCards` — e.g. “draw a card”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `also?`: "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 — CR 121.2c: an additional player in the same draw instruction; deduplicated and performed in APNAP order; `target?`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef); `upTo?`: boolean — CR 107.1c: "draws up to N cards" — amount is the most each drawing player may draw; each chooses zero through it on resolution; `reveal?`: boolean — "Draw a card and reveal it" (CR 701.20a): the drawn cards are revealed and become the latest selection for the following clauses ("that card's mana value", "if it's a land card, discard it"). - `discard` — e.g. “you choose a card from it. You discard that card”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `also?`: "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 — CR 701.9, 608.2c: an additional player in the same discard instruction ("you and those players each … discard a card at random"); deduplicated and performed in APNAP order; `target?`: TargetDef — What it acts on (TargetDef); `cards?`: TargetDef — Specific cards to discard ("that player discards that card", "discard those cards"): each is discarded by its owner from their hand, with no further choice (CR 701.8a). With cards, who / amount / filter are not used; `amount?`: ValueDef — How many / how much (integer or ValueDef); `anyNumber?`: boolean — CR 701.8, 608.2d: choose zero or more cards to discard on resolution, up to amount if present; `drawDiscarded?`: boolean — After all discard choices and discards, each player draws that many cards; `drawDiscardedOffset?`: number — With drawDiscarded: each player draws that many plus this signed number ("draws that many cards minus one" = -1), never below zero; `wholeHand?`: boolean — Discard the whole hand; `keep?`: ValueDef — With wholeHand: the discarding player chooses this many cards to keep; the rest of the hand is discarded ("chooses a card in their hand and discards the rest", CR 701.9a, 608.2d); `random?`: boolean — Discard at random; `chosenBy?`: "you" — The source's controller chooses the card(s) from the player's hand ("you choose a nonland card from it"); `filter?`: ObjectFilter — With chosenBy: the cards that may be chosen. - `mill` — e.g. “mill a card”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef). - `scry` — e.g. “scry 1”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — "Target player scries N" (CR 601.2c, 701.22a): the scrying player is a target chosen as the spell is cast; `who: "target"` alone targets a player too; `amount`: ValueDef — How many / how much (integer or ValueDef). - `surveil` — e.g. “surveil 1”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — "Target player surveils N" (CR 601.2c, 701.25a): the surveilling player is a target chosen as the spell is cast; `who: "target"` alone targets a player too; `amount`: ValueDef — How many / how much (integer or ValueDef). - `dealDamage` — e.g. “~ deals 1 damage to target permanent chosen at random that share a creature type”. Fields: `whenCreatureDies?`: EffectDef[] — Trigger these effects once if a creature dies from this damage at the immediately following state-based action check; `target`: { of: "object" | "player" | "spell" | "ability" | "spellOrAbility" | "any"; slot?: string; mode?: "chosen" | "choose" | "all" | "self" | "random" | "host" | "triggering" | "created" | "convoked" | "linked" | "paired" | "top" | "affected" | "replaced" | "replacedSource" | "triggeringOther" | "about" | "thisWay" | "costPaid" | "attacked" | "grantor"; action?: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created"; among?: "triggering"; chooser?: any; random?: true; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; allZones?: boolean; position?: "top" | "bottom"; filter?: ObjectFilter; player?: any; playerOwns?: true; exceptPlayer?: any; playerFilter?: "opponent"; sameZoneOwner?: boolean; maxTotalManaValue?: ValueDef; maxTotalPower?: ValueDef; distinctBy?: "name" | "manaValue" | "controller" | "power"; equalBy?: "toughness" | "power" | "manaValue"; sharesType?: "card" | "permanent"; sharedBy?: "creatureType"; zones?: ("battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command")[]; playerTarget?: PlayerTargetDef; digSubset?: "looked" | "picked" | "rest"; span?: number; targetCount?: number; targetsOnlySource?: boolean; permanents?: true; stackTargets?: object; spell?: object; ability?: object; min?: ValueDef; max?: ValueDef | "any"; differentFromEarlierTargets?: boolean; attacker?: "self" | "triggering"; label?: string } — Who or what is dealt the damage. Whatever the mode, only creatures, planeswalkers, battles and players are ever selected (CR 120.3): the filter need not say so; `amount`: ValueDef — How many / how much (integer or ValueDef); `from?`: TargetDef — The object that deals the damage instead of the source ("target creature you control deals damage equal to its power to …"); values such as sourcePower are read from it; `divided?`: boolean — "… damage divided as you choose among one, two, or three targets / any number of targets": the division is announced as the spell is cast (each target at least 1, CR 601.2d); an illegal target on resolution loses its share; `dividedEvenly?`: boolean — CR 608.2b, 608.2h: divide damage evenly, rounded down, among targets still legal on resolution; no casting-time allocation; `excessTo?`: "controller" | { controllerIfSourceHas: string } — "Excess damage is dealt to that creature's controller instead" (CR 120.4a): each selected permanent is dealt only lethal damage (toughness less damage marked, 1 from a deathtouch source, loyalty, defense) and its controller is dealt the rest at the same time; `and?`: ({ target: TargetDef; amount: ValueDef })[] — Further recipients of the same instruction (CR 120.2b, 608.2c, 603.2c): "deals 4 damage to any target and 3 damage to each of up to two other targets", "to each creature without flying and each player". The same source (`from` included) deals all of it as one simultaneous damage event: every group is selected before any damage is dealt, a recipient named twice is dealt the sum once, lifelink gains once (CR 120.3f) and each prevention effect applies once per recipient (CR 615.13). - `setLife` — CR 119.5: gain/lose the difference to set a life total, with replacements and triggers. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef). - `redistributeLife` — "Redistribute any number of life totals" (CR 119.5, 608.2d): choose any number of players (one per team sharing a life total, CR 810.9), then give each of them one of their life totals back; each one's life becomes that number. No fields. - `exchangeLife` — CR 701.12: exchange life totals, all or nothing if a required gain/loss is prohibited. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target`: PlayerTargetDef — What it acts on (TargetDef). - `exchangeLifeWithStat` — CR 701.12g, 613.4b: "exchange your life total with this creature's toughness" - the player's life becomes the object's previous power/toughness (gain or loss) and a layer-7b effect with no duration sets the stat to the previous life total; all or nothing (CR 701.12a): nothing happens if the object has left the battlefield or the life change is prohibited. Fields: `who?`: "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 — Whose life total is exchanged; default you. "target opponent's life total" is "target" with a player target; `target?`: PlayerTargetDef — What it acts on (TargetDef); `object`: { of: "object" | "player" | "spell" | "ability" | "spellOrAbility" | "any"; slot?: string; mode?: "chosen" | "choose" | "all" | "self" | "random" | "host" | "triggering" | "created" | "convoked" | "linked" | "paired" | "top" | "affected" | "replaced" | "replacedSource" | "triggeringOther" | "about" | "thisWay" | "costPaid" | "attacked" | "grantor"; action?: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created"; among?: "triggering"; chooser?: any; random?: true; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; allZones?: boolean; position?: "top" | "bottom"; filter?: ObjectFilter; player?: any; playerOwns?: true; exceptPlayer?: any; playerFilter?: "opponent"; sameZoneOwner?: boolean; maxTotalManaValue?: ValueDef; maxTotalPower?: ValueDef; distinctBy?: "name" | "manaValue" | "controller" | "power"; equalBy?: "toughness" | "power" | "manaValue"; sharesType?: "card" | "permanent"; sharedBy?: "creatureType"; zones?: ("battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command")[]; playerTarget?: PlayerTargetDef; digSubset?: "looked" | "picked" | "rest"; span?: number; targetCount?: number; targetsOnlySource?: boolean; permanents?: true; stackTargets?: object; spell?: object; ability?: object; min?: ValueDef; max?: ValueDef | "any"; differentFromEarlierTargets?: boolean; attacker?: "self" | "triggering"; label?: string } — The permanent whose power or toughness is exchanged (usually the source); `stat`: "power" | "toughness" — Which characteristic of the permanent is exchanged with the life total (CR 701.12a, 119.7-8). - `duelReveal` — CR 701.20a, 608.2c: two players each reveal the top card of their library, each loses life equal to the mana value of the card the other revealed (one simultaneous event), then each puts the card they revealed into their hand (Keen Duelist, Parker Luck). Fields: `target`: { of: "player"; slot?: string; mode?: "chosen" | "choose" | "all" | "random" | "triggering" | "about" | "affected"; span?: number; player?: any; exceptPlayer?: any; random?: true; min?: ValueDef; max?: ValueDef | "any"; label?: string } — The target opponent (withYou) or the two target players; `withYou?`: boolean — You and the one target player duel ("you and target opponent each reveal"); otherwise the two target players. - `gainLife` — e.g. “you gain 1 life”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `also?`: "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 — Each named participant gains the amount; if both refer to the same player, they gain twice the amount as one event; `target?`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef). - `loseLife` — e.g. “you lose 1 life”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef). - `destroy` — e.g. “destroy target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef); `noRegenerate?`: boolean — "It can't be regenerated."; `andSelf?`: boolean — Destroy the selected objects and the source simultaneously (CR 701.7a, 608.2c); `and?`: ({ target: TargetDef })[] — Further objects of the same instruction (CR 701.8a, 608.2c): "destroy target enchantment and each other enchantment that shares a color with it" — each group selected as its own clause would be, all destroyed at the same time. - `exile` — Exile selected objects; mode choose and chooser target let the targeted player choose their own cards on resolution (CR 406.1, 608.2d). Fields: `target`: TargetDef — What it acts on (TargetDef); `faceDown?`: boolean — Face down (CR 708); `link?`: boolean | "timestampOrder" — Link the exiled cards to this source incarnation. timestampOrder lets the exiling player order simultaneous components so the latest card is defined (CR 712.21b, 727.3); `until?`: { untilEvent: TriggerDef } | { leaves: TargetDef } — CR 610.3: exile only until this event; the cards then return (Palace Jailer, Calix). - `bounce` — Return selected cards to their individual owners' hands, including all cards linked to the source (CR 400.3, 607.2a). Fields: `target`: TargetDef — What it acts on (TargetDef). - `moveTo` — e.g. “put target creature onto the battlefield”. Fields: `target`: TargetDef — What it acts on (TargetDef); `destination`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone the objects are put into; `position?`: "top" | "bottom" | { fromTop: any } | { chooser: "owner" | "you"; options?: any[]; each?: boolean } — Exact placement in a library, including third from the top (CR 401.4, 401.7); { chooser } asks that player for top or bottom on resolution ("its owner puts it on their choice of the top or bottom of their library", CR 608.2d); `order?`: "chosen" | "random" — Order only the moved group within each owner's library, not the whole deck. Omitted: owner chooses (CR 401.4); `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `andSelf?`: boolean — The source moves together with the selected objects (CR 608.2c): "Return ~ and another target creature to their owners' hands"; `attachedTo?`: TargetDef — Enter attached to this object (CR 303.4f, 701.3), before enters triggers; `attacking?`: boolean | "defendingPlayer" — Enter attacking without attack triggers or implicit tapping; optionally fixed to the defending player (CR 508.4); `controller?`: "you" | "owner" | "opponent" — Who controls it on the battlefield: you (default), its owner, or an opponent you choose as the effect resolves (CR 608.2d); `withCounters?`: { counter: string; amount: ValueDef; filter?: ObjectFilter } | object[] — Each selected permanent enters with these additional counters, before enters triggers (CR 122.6, 614.12); `faceDown?`: boolean | "choose" — CR 708.2, 608.2d: choose face up or face down for each card as it enters; `transformed?`: boolean — Onto the battlefield back face up: a transform card enters transformed (CR 712.14a); a custom modal double-faced card enters as its back face ("return Juiblex from the graveyard to the battlefield" on the back of a modal card). Without it a double-faced card enters front face up; `link?`: boolean — Link the moved cards to the source (CR 607.2a): later abilities of the source refer to them with `mode: "linked"` / filter `linkedToSource`; `as?`: EffectDef[] — Continuous effects applied to each permanent as it enters, before it chooses what to enchant and before enters triggers (CR 303.4f, 611.2a): "It's an Aura enchantment with enchant creature you control and '…' and it loses all other abilities" — the entering permanent is { mode: "affected" }; use permanent durations. - `sacrifice` — The players `who` means (default you) each sacrifice `target` (mode `choose` = of their choice; `random` = `max` of their permanents at random, default one; `all` = every match). The count is per player. `who: "target"` with `player` is "target player / opponent sacrifices …" (the player is a target of the spell). Fields: `target`: TargetDef — What it acts on (TargetDef); `who?`: "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 — Which player(s) — a player selector (default `you`); `player?`: PlayerTargetDef — Player selector for whose zone or which player is counted; `also?`: "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 — CR 701.21a, 101.4: an additional player in the same sacrifice instruction ("you and that player each sacrifice a creature"); each chooses their own permanent and the sacrifices happen at once. Deduplicated, in APNAP order. - `tap` — e.g. “tap target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef). - `untap` — e.g. “untap target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef). - `removeFromCombat` — CR 506.4: remove the selected creatures from combat — they stop attacking / blocking (a blocked attacker stays blocked), deal and receive no combat damage this combat. Fields: `target`: TargetDef — What it acts on (TargetDef). - `reselectAttack` — "Reselect which player or permanent target attacking creature is attacking" (Misleading Signpost): this effect's controller chooses anew what each selected attacking creature attacks — any player other than its controller, or a planeswalker or battle such a player controls — ignoring attack requirements, restrictions and costs. It stays attacking and still counts as having attacked what it was declared to attack; no attack ability triggers (CR 506.4, 508.1b, 508.4). Fields: `target`: TargetDef — What it acts on (TargetDef). - `endTurn` — CR 716.1: end the turn — exile every object on the stack (including the resolving card), remove all creatures from combat, check state-based actions, then skip straight to the cleanup step; "at the beginning of the end step" abilities do not trigger this turn (CR 716.4). No fields. - `endCombat` — "End the combat phase" (CR 506.1, 716 by analogy; Mandate of Peace rulings): exile every spell and ability on the stack (the resolving card too), check state-based actions, remove all creatures from combat and end "until end of combat" effects, then skip the end of combat step to the next phase. Only during a combat phase. No fields. - `suspendCard` — CR 702.62c: the selected exiled cards gain suspend — with time counters on them they are suspended cards: their owner removes a time counter at each upkeep and casts the card without paying its mana cost when the last is removed ("exile it with three time counters on it and it gains suspend"). Fields: `target`: TargetDef — What it acts on (TargetDef). - `plotCard` — CR 702.170a, 702.170d: the selected exiled cards become plotted ("exile target spell. It becomes plotted"): their owner may cast each one as a sorcery on a later turn without paying its mana cost. Fields: `target`: TargetDef — What it acts on (TargetDef). - `addCounters` — e.g. “put a +1/+1 counter on target creature”. Fields: `sacrificeRest?`: ObjectFilter — CR 101.4, 701.21a, 608.2c: after counter placement, simultaneously sacrifice matching permanents those players control other than the chosen recipients; retain the recipients as affected; `who?`: "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 — CR 101.4, 122.1: players placing counters; each chooses before counters are placed simultaneously; current is that player; `optional?`: boolean — Each placing player may decline (CR 608.2d); `then?`: EffectDef[] — After placement, run for each player who chose to act, with current bound to them (CR 118.12); `target`: TargetDef — What it acts on (TargetDef); `counters?`: ({ counter: string; if: ObjectFilter })[] — CR 122.1, 608.2c, 603.2c: put amount of each matching counter kind simultaneously; test all recipient filters before placing any counters; `chosenCounter?`: string — CR 122.1, 608.2d: key of a counter kind chosen earlier in this resolution; an impossible choice adds nothing. Supports permanent and player counters; `onlyIfAbsent?`: boolean — CR 608.2c: add counters only if the recipient has none of the chosen kind; `counter?`: string | string[] — CR 122.1, 608.2d: a kind, or a list for "your choice of a +1/+1, first strike, or trample counter" chosen on resolution for each recipient; `amounts?`: ValueDef[] — CR 122.1, 608.2d: with a counter list, the count for each alternative in order ("your choice of a +1/+1 counter or two charge counters"); the chosen alternative places its own count instead of amount; `amount`: ValueDef — How many / how much (integer or ValueDef); `upTo?`: boolean — CR 107.1b, 608.2d: choose zero through amount on resolution for each recipient; `divided?`: boolean — "Distribute N +1/+1 counters among one, two, or three target creatures": the distribution is announced as the spell is cast (each target at least one, CR 601.2d); `maxTotal?`: ValueDef — "This ability can't cause the total number of +1/+0 counters on this creature to be greater than four": put only as many as keep each recipient's count of this counter at or below this total (CR 122.1). - `tapOrUntap` — CR 608.2d: choose to tap or untap the declared target on resolution. Fields: `target`: TargetDef — What it acts on (TargetDef); `who?`: "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 — CR 608.2d: player choosing tap or untap; defaults to the ability controller. - `removeCounters` — e.g. “remove a +1/+1 counter from target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef); `counter?`: string — Counter kind; defaults to +1/+1. any permits a mixture of kinds chosen on resolution (CR 122.1); `amount`: ValueDef | "any" | "all" — Remove this many counters; any chooses zero through the available counters on resolution, all removes every available counter (CR 122.1, 608.2d, 609.3); `upTo?`: boolean — CR 107.1b, 608.2d: choose zero through amount on resolution for each recipient. - `modifyPT` — e.g. “target creature gets +1/+1 until end of turn”. Fields: `target`: TargetDef — What it acts on (TargetDef); `power`: ValueDef — Power (a number, or a string such as "*" for characteristic-defining values); `toughness`: ValueDef — Toughness (a number, or a string such as "*" for characteristic-defining values); `duration?`: "instant" | "endOfTurn" | "endOfCombat" | "endOfAdditionalCombat" | "untilYourNextTurn" | "untilEndOfYourNextTurn" | "untilEndOfNextTurn" | "untilStackEmpty" | "untilYourNextEndStep" | "untilYourNextUpkeep" | "permanent" | "untilSourceLeaves" | "whileYouControlSource" | "whileYourTurn" | "perpetual" | { whileSource: object; whileTarget?: object } | { whileSource?: object; whileTarget: object } | { untilEvent: TriggerDef } — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes; `alternative?`: { power: ValueDef; toughness: ValueDef } — CR 608.2d: choose either printed P/T change on resolution. - `grantKeyword` — e.g. “target creature gains flying until end of turn”. Fields: `target`: TargetDef — What it acts on (TargetDef); `keyword`: string | string[] — A keyword, or a printed list from which the controller chooses one at resolution for all recipients (CR 608.2d); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `createToken` — e.g. “create a colorless creature token”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `also?`: "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 — CR 101.4, 111.2, 608.2c: additional creators in the same instruction; each player creates once, in APNAP order (you and that player each create); `target?`: PlayerTargetDef — The targeted player who creates these tokens (CR 601.2c, 111.2); `attachedTo?`: TargetDef — Create attached to this host before enters triggers (CR 303.4f); `token`: object | { oneOf: object[]; chooseAtRandom?: boolean; excludeControlled?: boolean } — The complete inline token spec (TokenSpec: name, types, subtypes, colors, power, toughness, keywords, abilities …); `amount?`: ValueDef — How many / how much (integer or ValueDef); `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `attacking?`: boolean | "defendingPlayer" | "current" | { player: any; orPlaneswalker: true } — Enter attacking, optionally a fixed player: the defending player or current bound by forEachPlayer (CR 508.4). It does not tap the tokens: "tapped and attacking" also sets tapped; `blocking?`: TargetDef — CR 509.4, 506.3d: enter blocking this attacking creature ("a 0/1 green Plant creature token that's blocking that creature"); for triggers it never "blocked"; `and?`: ({ token: object; amount?: ValueDef })[] — CR 701.7a, 603.2c, 603.6a, 614.12: further token kinds created by the same instruction ("create a 3/3 … Wurm token with deathtouch and a 3/3 … Wurm token with lifelink"): every token is created in one event — token replacement effects apply to the whole event once and all the tokens enter simultaneously, so "one or more tokens enter" triggers once. The other fields apply to every kind. - `createTokenCopy` — e.g. “create a token that's a copy of target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef); `link?`: boolean — CR 400.7, 607.1: link all tokens created by this instruction to the source incarnation, so later instructions can refer to tokens created with it; `amount?`: ValueDef — How many / how much (integer or ValueDef); `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `attacking?`: boolean — Attacking (true) / not attacking (false); on an effect that creates or moves a creature, it enters attacking; `haste?`: boolean — The created tokens have haste; `except?`: { keywords?: string[]; keywordAbilities?: KeywordAbilityDef[]; abilities?: any[]; addTypes?: string[]; addSubtypes?: string[]; setTypes?: string[]; setSubtypes?: string[]; removeSubtypes?: string[]; colors?: string[]; addColors?: string[]; power?: ValueDef; toughness?: ValueDef; loyalty?: ValueDef; notLegendary?: boolean; legendary?: boolean; name?: string; noManaCost?: boolean } — Except: changes to the copy's copiable values (CR 707.9); `who?`: "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 — The player who creates the token (CR 111.2); default: the controller; `withCounters?`: { counter: string; amount: ValueDef } — CR 122.6, 614.1c: "except it enters with an additional +1/+1 counter on it" — counters each token enters with; not a copiable value. - `addMana` — e.g. “add {G}”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `retain?`: "endOfTurn" | "permanent" — CR 106.4: only mana produced by this instruction survives step/phase ends for the specified duration; spending restrictions are preserved; `target?`: PlayerTargetDef — CR 601.2c, 608.2h: player targeted by a contextual quantity; mana still goes to who (default you); `mana`: string | string[] — Mana symbols to produce; {any} chooses a color, {chosen} uses the chosen color, W|U chooses one symbol. An array chooses one whole bundle; `amount?`: ValueDef — Repeat the mana bundle this many times, evaluated on resolution (CR 106.3); `oneColor?`: boolean — Choose a single color for all {any} symbols: mana of any one color; `differentColors?`: boolean — Each mana in this production bundle must have a different color; applies to manual and automatic payment choices (CR 106.3, 608.2d); `colorsFromExiled?`: boolean — Choose from the colors of cards currently exiled with this source (CR 106.3, 607.2a); `colorsAmong?`: { filter?: ObjectFilter; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; who?: any; each?: boolean } — Colors among matching objects: any one of them ({any}), or with each one fixed unit of every such color (CR 105.1, 106.1a, 106.5, 608.2h); `colorsFromCommanderIdentity?`: boolean — Choose from the colors in your commander's color identity (CR 903.4); outside a Commander game no mana is produced; `availableFrom?`: ObjectFilter — Only mana types matching permanents could produce, ignoring their activation costs and spending restrictions (CR 106.7); `colorsOnly?`: boolean — For availableFrom: colors only, excluding colorless mana; `onSpend?`: { spells: ObjectFilter; abilities?: ObjectFilter | "any"; by?: "you"; sharesCreatureTypeWithCommander?: boolean; triggered?: boolean; onceEachTurn?: boolean; separateTriggers?: boolean; effects: EffectDef[] } — CR 106.6: each mana unit carries this rider through manual or automatic payment. triggering refers to the spell paid for; you is the mana ability controller; `restriction?`: { notSpells?: ObjectFilter; spells?: ObjectFilter; abilities?: ObjectFilter | "any"; actions?: ("cumulativeUpkeep" | "foretell" | "morph" | "manifest" | "turnFaceUp" | "equip" | "unlockDoor" | "disturb" | "powerUp")[]; fromExiled?: boolean; spellFrom?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; spellNotFrom?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; costContains?: "X" | "C"; sameColor?: boolean; notGeneric?: boolean; uncounterable?: boolean } — Spending permissions joined by OR across spells, abilities, and actions (CR 106.6). Restricted mana empties normally. - `manaDoesntEmpty` — CR 106.4, 611.2: selected players retain all unspent mana as steps and phases end for this duration. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `duration?`: "endOfTurn" | "endOfCombat" | "endOfAdditionalCombat" | "untilYourNextTurn" | "untilEndOfYourNextTurn" | "untilEndOfNextTurn" | "untilStackEmpty" | "untilYourNextEndStep" | "untilYourNextUpkeep" | "permanent" | "whileYouControlSource" | "whileYourTurn" — How long it lasts (see Durations on the Relationships & references page). - `loseUnspentMana` — CR 106.4, 608.2c: "… loses all unspent mana" — the selected players' mana pools (restricted and retained mana included) empty now; the mana is lost, not spent. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `searchLibrary` — e.g. “search your library for a card, put it into your hand, then shuffle”. Fields: `optional?`: boolean — The searcher may decline the entire search, including its shuffle (CR 701.23, 608.2d); `searcher?`: "searchedPlayer" | "controller" — searchedPlayer: the targeted player searches their own zones; controller: the ability's controller searches the selected players' zones ("Search its controller's graveyard, hand, and library"); otherwise you search a targeted player's zones (CR 701.19a); `target?`: PlayerTargetDef — Declared player target whose library is searched (CR 601.2c); `who?`: "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 — Which player(s) — a player selector (default `you`); `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `zones?`: ("battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command")[] — Zones searched together; default library (CR 701.19); `optionalZones?`: boolean — And/or: choose which listed zones to search; shuffle only when library is searched (CR 701.19); `findAll?`: boolean — "Search … for all cards …": every card matching the quality in the searched zones is found — the searcher sees each whole zone, so nothing can be missed (CR 701.19b, Sowing Salt rulings). Use max "any"; `finds?`: ({ filter?: ObjectFilter; max?: any; forEach?: TargetDef })[] — Separate finds with different qualities, excluding already found cards; one final shuffle (CR 701.19); `distinctNames?`: boolean — Found cards must have different names (CR 201.2, 701.19b); `shareLandType?`: boolean — CR 205.3i, 701.23b: found cards share a land type across the group; zero or one card is allowed, including one Wastes; `destination?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone the objects are put into; `position?`: "top" | "bottom" | { fromTop: number } — Place found cards here after shuffling the remaining library (CR 701.20b, 401.4, 401.7); `then?`: EffectDef[] — Effects on the found set (affected targets), replacing the default move, before the shuffle (CR 608.2c); `distribute?`: { chooser?: "opponent"; target?: PlayerTargetDef; count?: number; destination: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; restDestination: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" } — Choose one found card for destination and put the rest into restDestination; opponent chooses if specified (CR 608.2c); `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `controllerTarget?`: PlayerTargetDef — CR 110.2a, 601.2c: "put it onto the battlefield under target player's control" - found cards enter under this declared player's control; `reveal?`: boolean — Reveal the cards found / taken; `min?`: ValueDef — Required minimum found (CR 701.19b: a search for cards may find fewer only when it cannot); a computed value for "for that many cards" (CR 107.3, 608.2h); `max?`: ValueDef | "any" — Default 1; computed resolution-time limit or any number of matching cards (CR 701.19); `shuffle?`: boolean — Shuffle the library afterwards. - `shuffle` — CR 701.20: shuffle each selected player library; a target is declared on casting. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: PlayerTargetDef — What it acts on (TargetDef). - `shufflePermanentsAndReveal` — Each player shuffles all permanents they own into their library and reveals that many cards. Matching cards enter together for each filter in order across all players. Owners put the rest on the bottom in their chosen order. Fields: `battlefieldGroups`: ObjectFilter[] — An ObjectFilter (all set fields must match). - `exchangeZones` — CR 701.12a, 400.7: "exchange your graveyard and library" - every card in each of the two zones moves to the other at once. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `zones`: any[] — The two zones exchanged; `shuffle?`: boolean — ", then shuffle": the player shuffles their library afterwards. - `fight` — e.g. “~ fights target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef); `what?`: TargetDef — The creature that fights (default: the source): "target creature you control fights target creature you don't control"; `pairwise?`: boolean — CR 701.14a, 608.2d: pair different creatures; with unequal numbers as many pairs as possible fight; `whenCreatureDies?`: EffectDef[] — Trigger these effects once if a creature dies from that fight at the immediately following state-based action check. - `counterSpell` — CR 701.5, 614.15: counter a spell; if successfully countered, put it in the specified zone instead of its owner's graveyard (library defaults to top unless position specifies otherwise). Fields: `target?`: TargetDef — What it acts on (TargetDef); `destination?`: "exile" | "hand" | "library" — Where the countered spell goes instead of the graveyard (library = top); `position?`: "top" | "bottom" | { chooser: "you" } — CR 401.4, 614.15: placement for a counter into library; chooser chooses top or bottom only if the counter succeeds. - `counterUnlessPays` — CR 701.5, 614.15: counter unless its controller pays amount or cost; destination applies only if countered (library defaults to top unless position specifies otherwise). Fields: `target?`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — Generic mana to pay; `cost?`: CostDef — CR 118.12, 608.2c: any other payment instead of amount ("pays {1} and 1 life", "discards their hand"); `ifPaid?`: EffectDef[] — CR 608.2c: "If they do, …" — run for this effect's controller when the payment is made; `ifNotPaid?`: EffectDef[] — CR 608.2c: "If that player doesn't, …" — run when the spell's controller doesn't pay (declined or unable), `current` bound to that player (Power Sink); `destination?`: "exile" | "hand" | "library" — Where the spell goes if it is countered (library = top). - `gainControl` — e.g. “gain control of target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef); `controller?`: PlayerTargetDef — The targeted player who gains control (CR 613.1b); defaults to you; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `gainControlEachOthers` — CR 611.2c, 613.1b: you and the selected player gain control of each other's matching permanents simultaneously. Either group may be empty. Fields: `target`: PlayerTargetDef — What it acts on (TargetDef); `filter`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `attach` — e.g. “attach ~ to target creature”. Fields: `target`: TargetDef — What it acts on (TargetDef); `what?`: TargetDef — What to attach (default: the source), e.g. a Role token just created; `afterMovingFromCreature?`: EffectDef[] — Resolve only if this actually moved the attachment from a different creature. - `transform` — Transform a transforming permanent (CR 701.28, 712). Fields: `target?`: TargetDef — What it acts on (TargetDef); `convert?`: boolean — Print convert, the same action as transform (CR 701.28). - `flip` — CR 710.2-4: flip a flip permanent; already flipped permanents stay flipped. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `regenerate` — e.g. “regenerate ~”. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `preventDamage` — Prevent the next N (or all) damage that would be dealt to the target this turn (CR 615.7). Fields: `target`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — How many / how much (integer or ValueDef); `combatOnly?`: boolean — Only combat damage; `divided?`: boolean — CR 601.2d, 615.7: the amount is divided among the targets as they are chosen (each at least 1); each target gets a shield of its share ("prevent the next 5 damage that would be dealt this turn to any number of targets, divided as you choose"). - `cantPrevent` — CR 615.12: damage cannot be prevented for this duration. Prevention side effects still occur; finite shields retain their budgets. Fields: `duration?`: "endOfTurn" | "endOfCombat" | "endOfAdditionalCombat" | "untilYourNextTurn" | "untilEndOfYourNextTurn" | "untilEndOfNextTurn" | "untilStackEmpty" | "untilYourNextEndStep" | "untilYourNextUpkeep" | "permanent" | "whileYouControlSource" | "whileYourTurn" — How long it lasts (see Durations on the Relationships & references page). - `digTop` — e.g. “look at the top a card of your library. Put up to one of them into your hand. Put the rest on the bottom of your library”. Fields: `exile?`: boolean — CR 406.1, 608.2c: exile the examined cards before picks, then route the uncast cards with restTo; `amount?`: ValueDef — How many / how much (integer or ValueDef); `until?`: ObjectFilter — Stop when a card matching this filter is revealed; `untilCount?`: ValueDef — How many matching cards to find before stopping; `reveal?`: boolean — Reveal the cards found / taken; `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: PlayerTargetDef — What it acts on (TargetDef); `chooser?`: "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 | "opponent" | "thatPlayer" — Who chooses among the cards looked at (defaults to the digging player); `piles?`: { separator?: "you" | "opponent" | "target"; chooser?: "you" | "opponent"; faceDown?: boolean } — Partition into two possibly empty piles, then choose one. Picks apply to that pile; all unpicked cards use restTo. faceDown hides the first pile from its chooser (CR 700.3a-d); `picks?`: ({ position?: "top" | "bottom"; faceDown?: boolean; take: number | "all" | "any"; min?: number; filter?: ObjectFilter; destination?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; tapped?: boolean; withCounters?: any; optional?: boolean; order?: "first" | "chosen" | "random"; attacking?: boolean | "defendingPlayer"; ifNonePicked?: boolean; maxTotalManaValue?: ValueDef; then?: EffectDef[]; castFree?: boolean; castPayCost?: boolean; reveal?: boolean; controller?: "you" | "owner" | "opponent" })[] — What the player takes from the cards looked at: each pick `{ take, filter?, destination?, position?, tapped?, … }`; `take?`: number — How many cards this pick takes; `min?`: number — Minimum number of selections / required amount; `optional?`: boolean — "You may": the player chooses whether to do it; `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `restTo?`: "bottom" | "graveyard" | "hand" | "exile" | "shuffle" | "top" — Where the unpicked cards go (default the bottom of the library); `restOrder?`: "random" | "chosen" — Order of the unpicked cards: `random` or `chosen` by the player; `restFaceDown?`: boolean — Unpicked cards go to their zone face down; `shuffleFirst?`: boolean — CR 701.24a: shuffle the library after the examination, then place the rest by identity ("Then shuffle and put the cards you looked at this way on top in any order"); `link?`: boolean — CR 406.3 / 607.2a: cards this examination exiles (the rest or a pick) are "exiled with" the source, so "cast a card exiled with ~" finds them; `pool?`: boolean — CR 608.2c-d: with several examining players, the picks choose among all their examined cards together ("Choose one of the revealed creature cards"); the rest go to their owners' zones; `destination?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone the objects are put into; `withCounters?`: object | object[] — CR 122.6, 614.1c: all matching additional counters are placed as the permanent enters, before triggers; `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped. - `separatePiles` — CR 700.3: separate cards from any zone into two piles, let a player choose one, then do things with each pile ("separate them into a face-down pile and a face-up pile. An opponent chooses one of those piles. Put that pile into your hand and exile the rest"). Fields: `target`: { of: "object" | "player" | "spell" | "ability" | "spellOrAbility" | "any"; slot?: string; mode?: "chosen" | "choose" | "all" | "self" | "random" | "host" | "triggering" | "created" | "convoked" | "linked" | "paired" | "top" | "affected" | "replaced" | "replacedSource" | "triggeringOther" | "about" | "thisWay" | "costPaid" | "attacked" | "grantor"; action?: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created"; among?: "triggering"; chooser?: any; random?: true; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; allZones?: boolean; position?: "top" | "bottom"; filter?: ObjectFilter; player?: any; playerOwns?: true; exceptPlayer?: any; playerFilter?: "opponent"; sameZoneOwner?: boolean; maxTotalManaValue?: ValueDef; maxTotalPower?: ValueDef; distinctBy?: "name" | "manaValue" | "controller" | "power"; equalBy?: "toughness" | "power" | "manaValue"; sharesType?: "card" | "permanent"; sharedBy?: "creatureType"; zones?: ("battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command")[]; playerTarget?: PlayerTargetDef; digSubset?: "looked" | "picked" | "rest"; span?: number; targetCount?: number; targetsOnlySource?: boolean; permanents?: true; stackTargets?: object; spell?: object; ability?: object; min?: ValueDef; max?: ValueDef | "any"; differentFromEarlierTargets?: boolean; attacker?: "self" | "triggering"; label?: string } — The cards to separate: a graveyard selection, the top cards of a library (mode top), or "those cards" (mode affected); `separator?`: "you" | "opponent" — Who splits the cards into two piles (default you); `chooser?`: "you" | "opponent" | "target" — Who picks a pile (default you); an opponent is chosen on resolution when there are several; target is the declared player whose permanents are separated ("… in the pile of their choice"); `faceDown?`: boolean — CR 700.3d: the first pile stays face down for a chooser who didn't separate it; `reveal?`: boolean — Reveal the set before separating it; `chosen?`: EffectDef[] — Effects on the chosen pile: target mode affected is "those cards"; `rest?`: EffectDef[] — Effects on the other pile: target mode affected is "those cards". - `becomeCopy` — e.g. “~ becomes a copy of target creature until end of turn”. Fields: `target`: TargetDef — What it acts on (TargetDef); `applyTo?`: TargetDef — What the replacement watches (default the source itself; `mode: "all"` + filter for a group, a player selector for player events); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes; `except?`: { keywords?: string[]; keywordAbilities?: KeywordAbilityDef[]; abilities?: any[]; addTypes?: string[]; addSubtypes?: string[]; setTypes?: string[]; setSubtypes?: string[]; removeSubtypes?: string[]; colors?: string[]; addColors?: string[]; power?: ValueDef; toughness?: ValueDef; loyalty?: ValueDef; notLegendary?: boolean; legendary?: boolean; name?: string; noManaCost?: boolean } — Except: changes to the copied characteristics (CR 707.9). - `becomeType` — e.g. “target creature becomes a in addition to its other types until end of turn”. Fields: `subtypeKind?`: "creatureType" | "basicLandType" — Replace only this subtype family; an empty subtype list removes all of it (CR 205.3, 613.1d); `allCreatureTypes?`: boolean — Gain all creature types without gaining changeling (CR 205.3m); `target`: TargetDef — What it acts on (TargetDef); `chosenSubtype?`: boolean | string — Snapshot the earlier chosen subtype; true reads creatureType, a string names its key (CR 205.3, 608.2d); `types?`: string[] — Card types, e.g. ["Artifact", "Creature"]; `subtypes?`: string[] — Subtypes, e.g. ["Elf", "Warrior"]; `supertypes?`: string[] — Supertypes gained ("becomes a legendary 4/4 … creature", "becomes snow"); kept even when `replace` sets the card types (CR 205.4a, 613.1d); `replace?`: boolean — Replace the existing types / colors instead of adding to them; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `removeTypes` — CR 205.1a, 613.1d: a resolving effect removes card types, supertypes or subtypes for a duration ("this creature isn't a creature until end of turn"). Fields: `target`: TargetDef — What it acts on (TargetDef); `types?`: string[] — Card types removed ("isn't a creature"); the subtypes only they had go with them (CR 205.1a); `supertypes?`: string[] — Supertypes removed ("isn't snow", "is no longer snow"); `subtypes?`: string[] — Subtypes removed ("isn't a Human"); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `becomeColor` — e.g. “target creature becomes colorless until end of turn”. Fields: `target`: TargetDef — What it acts on (TargetDef); `colors`: string[] — Colors as W / U / B / R / G codes; `chosenColor?`: boolean | string — Use the earlier chosen color instead of colors (CR 105.3, 608.2d); `colorsOfChoice?`: boolean — "The color or colors of your choice": one or more colors chosen as it resolves (CR 105.2, 608.2d); colors is then []; `replace?`: boolean — Replace the existing types / colors instead of adding to them; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `loseAbilities` — e.g. “target creature loses all abilities until end of turn”. Fields: `target`: TargetDef — What it acts on (TargetDef); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `loseAbility` — CR 613.1f: the selected permanents lose one printed ability — `this` is the resolving ability ("this creature loses this ability"), a number a printed index; the other abilities keep their positions. Fields: `target`: TargetDef — What it acts on (TargetDef); `ability`: "this" | number — Which printed ability is lost: `this` (the resolving ability) or the index of a printed ability; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `endable` — CR 116.2c: "You may pay {W} to end this effect." — run the effects; every continuous effect they create belongs to one group that the player may end as a special action, any time they have priority, by paying the cost. Ending them all at once lets a Licid stop being an Aura and come unattached (CR 704.5n). Fields: `cost`: CostDef — The cost (CostDef); `who?`: "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 — Who may end it (default: the controller); `label?`: string — Shown with the special action; `then`: EffectDef[] — Effects that follow ("then …", "if you do …"). - `removeKeyword` — Remove this keyword in layer 6; use permanent for a printed loss with no stated duration (CR 611.2a, 613.1f). Fields: `target`: TargetDef — What it acts on (TargetDef); `keyword`: string — A plain keyword string ("Flying", "Haste" …) as in `keywords[]`; `cantHave?`: boolean — CR 101.2, 613.1f: also cannot have or gain this keyword during the duration, even from later grants; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `removeKeywordAbilities` — Lose every ability of this parametrised family, including earlier grants; later grants still apply (CR 702.14, 702.22, 613.1f). Fields: `target`: TargetDef — What it acts on (TargetDef); `keyword`: "landwalk" | "bandsWithOther" | "enchant" — The parametrised family removed (landwalk, bands with other); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `grantAbility` — CR 113.7a, 611.2, 707.9: grant an ability, or copy the resolving ability with this. Perpetual grants follow the card across zones. Fields: `target`: TargetDef — What it acts on (TargetDef); `ability`: AbilityDef | "this" — The ability granted (an AbilityDef); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `grantKeywordAbility` — Grant a parametrised keyword ability ("gains bands with other Dinosaurs", "has ward {2} until end of turn"). Fields: `target`: TargetDef — What it acts on (TargetDef); `keywordAbility`: KeywordAbilityDef | KeywordAbilityDef[] — A parametrised keyword ability (KeywordAbilityDef: `{ "keyword": "ward", "cost": { … } }`); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `gainAbilitiesOf` — CR 611.2c, 613.1f: "gains all activated abilities of target creature until end of turn" — the targets have the from objects' abilities (fixed on resolution) for the duration; each gained ability refers to the object that has it. Fields: `target`: TargetDef — What it acts on (TargetDef); `from`: { of: "object" | "player" | "spell" | "ability" | "spellOrAbility" | "any"; slot?: string; mode?: "chosen" | "choose" | "all" | "self" | "random" | "host" | "triggering" | "created" | "convoked" | "linked" | "paired" | "top" | "affected" | "replaced" | "replacedSource" | "triggeringOther" | "about" | "thisWay" | "costPaid" | "attacked" | "grantor"; action?: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created"; among?: "triggering"; chooser?: any; random?: true; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; allZones?: boolean; position?: "top" | "bottom"; filter?: ObjectFilter; player?: any; playerOwns?: true; exceptPlayer?: any; playerFilter?: "opponent"; sameZoneOwner?: boolean; maxTotalManaValue?: ValueDef; maxTotalPower?: ValueDef; distinctBy?: "name" | "manaValue" | "controller" | "power"; equalBy?: "toughness" | "power" | "manaValue"; sharesType?: "card" | "permanent"; sharedBy?: "creatureType"; zones?: ("battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command")[]; playerTarget?: PlayerTargetDef; digSubset?: "looked" | "picked" | "rest"; span?: number; targetCount?: number; targetsOnlySource?: boolean; permanents?: true; stackTargets?: object; spell?: object; ability?: object; min?: ValueDef; max?: ValueDef | "any"; differentFromEarlierTargets?: boolean; attacker?: "self" | "triggering"; label?: string } — The objects whose abilities are gained, as they exist on resolution (a chosen target, the linked exiled cards, a zone set); `kinds?`: ("activated" | "triggered" | "static" | "keyword")[] — Which classes of abilities (default all): activated includes loyalty and mana abilities, static includes replacement effects, keyword covers simple keywords and parametrised keyword abilities; `spendAsAny?`: { colors?: ("W" | "U" | "B" | "R" | "G")[] } — CR 609.4b, 613.1f: "You may spend mana as though it were mana of any color to activate those abilities" — the costs of the gained activated abilities may be paid with mana of any color; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes; `chooseKeyword?`: boolean — Each recipient gains up to one keyword ability of its controller's choice. - `setPT` — CR 107.3, 611.2c, 613.4b: set base power/toughness to values fixed on resolution, including X/X. Fields: `target`: TargetDef — What it acts on (TargetDef); `power?`: ValueDef — Base power; omitted leaves it unchanged; `toughness?`: ValueDef — Base toughness; omitted leaves it unchanged; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `exchangeBasePower` — CR 701.12a/g, 208.4b, 613.4b: simultaneously exchange two legal creatures' base power, before counters and bonuses. Neither changes if either target is illegal; perpetual survives zone changes. Fields: `target`: TargetDef — What it acts on (TargetDef); `second`: TargetDef — The second object of the exchange (default the source); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `switchPT` — e.g. “switch target creature's power and toughness until end of turn”. Fields: `target`: TargetDef — What it acts on (TargetDef); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `becomeBlocked` — CR 509.1h: each selected attacking creature becomes blocked (without blockers) if it isn't already; "becomes blocked" abilities trigger. Nothing happens to a creature that isn't attacking. Fields: `target`: TargetDef — What it acts on (TargetDef). - `restrict` — A temporary rule restriction, combat requirement (CR 508.1d, 509.1c), or capacity increase of one (blockAdditional, CR 509.1a), independent of abilities (CR 611.2). Selected targets are fixed; object sets with mode all stay dynamic, including later entrants (CR 611.2c), and so do spell sets with mode all ("Spells you control can't be countered this turn" covers spells cast later this turn). assignsNoCombatDamage: the creature stays in combat but assigns no combat damage (CR 510.1). damageByToughness: it assigns combat damage equal to its toughness rather than its power (CR 510.1a; Bill the Pony) — over a mode-all set the rule follows whichever creatures currently match (CR 611.2c). Fields: `target`: TargetDef — What it acts on (TargetDef); `planeswalkers?`: boolean — CR 508.1c: cantAttack also forbids planeswalkers controlled by the defending players; `restriction`: "blockAdditional" | "mustAttack" | "mustBlock" | "mustBeBlocked" | "cantAttack" | "cantBlock" | "cantBeBlocked" | "cantAttackOrBlock" | "cantRegenerate" | "cantBeTargeted" | "cantBeCountered" | "cantActivateLoyalty" | "cantActivate" | "loyaltyActivationsTwice" | "cantUntap" | "doesntUntap" | "assignsNoCombatDamage" | "damageByToughness" — Which restriction applies; `duration?`: Duration | "whileYouControlSource" | "controllersNextTurnEnd" — CR 611.2a-b: whileYouControlSource ends permanently when you lose control of the source incarnation; controllersNextTurnEnd applies only during the affected controller's next turn, fixed on resolution; `onlySource?`: boolean — For cantBlock, prevents blocking only the source object, whose identity is fixed now; `by?`: ObjectFilter — CR 509.1b: with cantBeBlocked, only blockers matching this filter (evaluated against the resolving ability) are forbidden. CR 115.1, 701.6: with cantBeTargeted / cantBeCountered, only spells / abilities whose source matches are restricted ("can't be the targets of blue or black spells": { colors: ["U", "B"] } with byKind spells); `byKind?`: "spells" | "abilities" | "spellsOrAbilities" — CR 115.1, 701.6: with cantBeTargeted / cantBeCountered, restrict only spells, only abilities, or both (default); `exceptBy?`: ObjectFilter — CR 509.1b: with cantBeBlocked, blockers matching this filter can still block. CR 508.1c: with cantAttack, attackers matching this filter can still attack ("Only land creatures can attack during that combat phase": { types: ["Creature", "Land"] }; "Only Throat Wolf can attack": { self: true }), the affected creatures that don't match can't; `defending?`: "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 | "itsOwner" — CR 508.1c-d, 611.2c: with cantAttack, forbidden defending players; with mustAttack, the player each creature must attack if able, fixed on resolution — a selector ("attacks that player each combat if able": current in a forEachPlayer) or itsOwner (each creature's own owner: "attacks its owner this turn if able"); `defendingTarget?`: PlayerTargetDef — CR 508.1d, 601.2c: with mustAttack, a declared player target to attack if able ("target creature attacks target opponent this turn if able"); no requirement if it's no longer a legal target; `defendingObject?`: TargetDef — CR 508.1d: with mustAttack, the planeswalker or battle to attack if able, fixed on resolution ("attack Gideon Jura if able": {of: object, mode: self}); no requirement once it has left; `turnOf?`: "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 — CR 611.2a: "During target player's next turn, …" — applies only during that player's next turn (fixed on resolution) and ends with it; omit duration. An object set with mode all stays dynamic during that turn; `otherThan?`: "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 — CR 508.1d: with mustAttack, "… and attacks a player other than you if able" (the requirement goad imposes, CR 701.15b, without goading): the players to attack someone other than, fixed on resolution. A creature able to attack only those players or planeswalkers still attacks; `unlessPays?`: CostDef — CR 508.1g-i, 509.1d-f, 611.2: with cantAttack / cantBlock, a cost to attack / block for the duration instead of a ban ("Until your next turn, creatures can't attack you unless their controller pays {2} for each of those creatures": defending you, planeswalkers; "This turn, creatures can't block unless their controller pays {X} for each blocking creature they control"). mana / payLife / genericAmount (fixed on resolution, X included) for each affected attacker of a defending player (any without defending) or blocker; `perCreatureText?`: "those" — CR 508.1d, 509.1d: render the per-creature payment as "for each of those creatures"; no rules difference. - `cantCast` — Selected players cannot cast matching spells for this duration (CR 611.2). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `filter?`: ObjectFilter — Only spells matching this filter are forbidden; omitted means every spell; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `mustBlock` — CR 509.1c: affected creatures block if able, optionally the specified attacker. Maximise requirements globally without violating blocking restrictions. Fields: `target`: TargetDef — What it acts on (TargetDef); `attacker?`: TargetDef — A specific creature that must be blocked if it attacks; selected independently from the blocker; `duration?`: "endOfTurn" | "endOfCombat" | "endOfAdditionalCombat" | "untilYourNextTurn" | "untilEndOfYourNextTurn" | "untilEndOfNextTurn" | "untilStackEmpty" | "untilYourNextEndStep" | "untilYourNextUpkeep" | "permanent" | "whileYouControlSource" | "whileYourTurn" — How long it lasts (see Durations on the Relationships & references page). - `controlDeclarations` — CR 508.6 / 509.6 (Master Warcraft, Odric, Master Tactician): for the duration, the selected player makes every attack or block declaration instead of the players who would, subject to the usual requirements, restrictions and costs. The most recently created such effect applies. Fields: `declarations`: "attackers" | "blockers" — Which declarations the player takes over: every attack (attackers, CR 508.6) or every block (blockers, CR 509.6); `who?`: "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 — The player who makes the declarations (default: the effect's controller); fixed on resolution; `duration?`: "endOfTurn" | "endOfCombat" — "this turn" (endOfTurn) or "this combat" (endOfCombat); default endOfTurn; `howOnly?`: boolean — Render "you choose how those creatures block" — the same control, printed after a clause that already forces the blocks. - `playerRule` — A floating player rule from a resolving spell; defaults to end of turn (CR 305.2, 402.2, 611.2a). cantAttack: "can't attack with creatures" (CR 508.1c). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — A declared player target ("Target player can't play lands this turn"); `rule`: "additionalLands" | "noMaxHandSize" | "maxHandSizeModifier" | "cantGainLife" | "cantLoseLife" | "lifeCantChange" | "cantLoseGame" | "cantWinGame" | "cantSearchLibraries" | "cantPlayLands" | "cantDrawCards" | "ignoreLegendRule" | "cantAttack" — Which player rule applies; `amount?`: ValueDef — Additional land plays or signed hand-size change, fixed on resolution; `duration?`: "endOfTurn" | "untilYourNextTurn" | "permanent" — How long it lasts (see Durations on the Relationships & references page). - `copyNextWithXMana` — CR 603.7: this turn, the next spell cast with {X} in its mana cost or ability activated with {X} in its activation cost triggers a copy with optional new targets. No fields. - `copyBoundStackObject` — CR 707.10: copy the triggering stack object or a spell actually cast by the enclosing castFree effect; its choices are copied. Fields: `from`: "trigger" | "castThisWay" — Where / what it comes from; `newTargets?`: boolean — The copy may have new targets chosen for it. - `nextSpellCantBeCountered` — The next matching spell you actually cast this turn cannot be countered (CR 611.2, 601.2i). Fields: `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together). - `nextSpellHas` — The next matching spell you cast this turn has this keyword ability, already while being cast (CR 611.2, 601.2). Fields: `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `keywordAbility`: KeywordAbilityDef — A parametrised keyword ability (KeywordAbilityDef: `{ "keyword": "ward", "cost": { … } }`). - `costModifier` — A resolving spell or ability changes what matching spells cost for a duration (CR 601.2f, 611.2a). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `amount`: number | { kind: "var"; name: string } | { kind: "count"; digSubset?: "looked" | "picked" | "rest"; of?: "object" | "player"; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; filter?: ObjectFilter; player?: any } | { kind: "doneThisWay"; of: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created"; filter?: ObjectFilter; distinctOwners?: boolean; by?: any } | { kind: "playerAggregate"; op: "max" | "min"; players?: any; value: ValueDef } | … (60 options) — Signed generic change, fixed on resolution (negative = less); `next?`: boolean — Only the next matching spell each affected player casts; `duration?`: "endOfTurn" | "untilYourNextTurn" | "permanent" — Default endOfTurn. permanent (with next): no time limit — lasts until a matching spell is cast ("The next planeswalker spell you cast costs {1} less to cast"). - `poisonCounters` — e.g. “you get a poison counter”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef). - `playerCounters` — Give (negative: remove) player counters such as energy ({E}), experience or rad. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `counter`: string — Counter kind (any string: "+1/+1", "loyalty", "time", "oil" …); `amount`: ValueDef — How many / how much (integer or ValueDef). - `removePlayerCounters` — CR 122.1: selected players lose all counters, including poison, energy, experience and rad. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef). - `proliferate` — Proliferate: choose any number of permanents and/or players that have a counter, then give each another counter of each kind already there. No fields. - `addCounterEachKind` — CR 122.1, 122.6: for each kind of counter on the target permanent or player, give it another counter of that kind; not proliferate. Fields: `target`: TargetDef — What it acts on (TargetDef). - `populate` — CR 701.36: choose a creature token you control during resolution and create a copy. No creature tokens means no action. Fields: `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `attacking?`: boolean — Attacking (true) / not attacking (false); on an effect that creates or moves a creature, it enters attacking. - `createEmblem` — "You get an emblem with …": a command-zone object with these abilities. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: PlayerTargetDef — CR 114.2, 601.2c: targeted player receiving the emblem; `name?`: string — The emblem's name; `abilities`: AbilityDef[] — Abilities (AbilityDef[]), the same shapes as a card's own. - `winGame` — e.g. “you win the game”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `loseGame` — e.g. “you lose the game”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef). - `cascade` — Exile from the top until a cheaper nonland card; you may cast it free; rest to the bottom at random. No fields. - `castAsFlash` — CR 702.8 / 611.2a: for the duration (default until end of turn), cast matching spells as though they had flash. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `once?`: boolean — Consumed by the next matching cast, even at normal timing; `duration?`: "endOfTurn" | "untilYourNextTurn" — CR 611.2a: endOfTurn (default) = "this turn"; untilYourNextTurn = "Until your next turn, you may cast sorcery spells as though they had flash" (Teferi, Time Raveler). - `playFromGraveyard` — CR 305.1 / 601.3: until end of turn, play matching graveyard cards with normal costs and timing. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `fromPlayer?`: "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 — Whose graveyard supplies the one spell. Resolve this player when the permission is created; a matching card can arrive later; `anyMana?`: "color" | "type" — Spend mana as any color or type only while casting the spell using this permission; `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `target?`: TargetDef — CR 400.7, 611.2a: only these selected graveyard card incarnations receive permission; `castOnly?`: boolean — CR 305.1, 601.3: allow spells, not land plays; `once?`: boolean — CR 611.2a: one matching spell may be cast under this permission, which is then spent; `graveyardReplacement?`: "exile" — CR 614.1a, 400.7g: "If that spell would be put into your graveyard, exile it instead" — the spell cast using this permission is exiled instead of entering a graveyard from the stack; requires once and castOnly. - `castFreeFromZone` — CR 118.9, 611.2a: cast matching spells from the specified zone free until end of turn, with normal timing and additional costs. Fields: `zone`: "hand" | "graveyard" — CR 601.3: zone from which the permission allows casting; `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `duration?`: "endOfTurn" — How long it lasts (see Durations on the Relationships & references page). - `castFree` — Cast or play the target card without paying its mana cost, immediately during resolution (CR 608.2g). Fields: `target`: TargetDef — What it acts on (TargetDef); `anyOrder?`: boolean — CR 608.2g: the player may cast any number of the selected cards in any order, choosing the next card after each cast; `optional?`: boolean — "You may": the player chooses whether to do it; `who?`: "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 — CR 608.2g: the casting player (default: the effect's controller); `current` inside a per-player examination is that player — "they may cast that card without paying its mana cost"; `play?`: boolean — CR 701.18 / 305: play, including a legal land play, during resolution; `payLife?`: ValueDef — CR 118.9: "by paying life equal to its mana value rather than paying its mana cost" (Anrakyr the Traveller) — life paid instead of the mana cost, read per card with { kind: "affected", property: "manaValue" }; always offered as a choice; `payCost?`: boolean — CR 608.2g, 601.2f-h: cast during resolution paying its costs ("you may cast it"), skipped if they can't be paid; `anyMana?`: "color" | "type" — CR 609.4b: with payCost — ", and mana of any type can be spent to cast that spell": spend mana as though it were mana of any color / any type to cast it (automatic and manual payment); `graveyardReplacement?`: "exile" — CR 614.1a / 400.7g: exile this cast spell if it would enter a graveyard while on the stack; `graveyardReplacementFilter?`: ObjectFilter — CR 614.1a: with graveyardReplacement, only spells cast this way matching this filter are exiled instead ("If an instant or sorcery spell cast this way would be put into your graveyard, exile it instead"); others reach the graveyard normally; `then?`: EffectDef[] — CR 608.2g: resolve if at least one card was actually cast or played; `else?`: EffectDef[] — CR 608.2g: resolve if no card was cast or played, including declined and impossible casts. - `exileMayPlay` — Impulse draw: exile cards and allow the player to play them for their normal costs until the end of this turn / your next turn / your next end step or upkeep / forever. Fields: `graveyardReplacement?`: "exile" — CR 614.1a, 400.7g: exile the spell cast using this permission if it would move from the stack to a graveyard, whether it resolves or is countered; `playLimit?`: number — Shared maximum number of cards playable across this permission (CR 611.2a, 601.3); `choose?`: number — Select this many exiled cards now; only they get permission (CR 608.2d); `while?`: ConditionDef — Ends permanently the first time this condition is false (CR 611.2b); `condition?`: ConditionDef — Checked whenever a card would be played, without ending permission (CR 601.3); `who?`: "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 — Which player(s) — a player selector (default `you`); `amount?`: ValueDef — Cards from the top of the library (default 1) when no target is given; `target?`: TargetDef — Specific cards to exile instead of the top of your library (e.g. mode top of another player's library); `until?`: "endOfTurn" | "endOfNextTurn" | "nextEndStep" | "nextUpkeep" | "endOfNextCombat" | "nextExile" | "forever" — Permission lifetime; next combat is on your next turn, and nextExile tracks the source incarnation (CR 611.2a, 400.7); `free?`: boolean — CR 118.9: cast spells without paying their mana costs under this permission; `optionalFree?`: boolean — Offer the option of casting without paying the mana cost in addition to normal play; `freeIf?`: ConditionDef — CR 118.9, 611.2c: evaluate when granting permission; if true spells may be cast without paying their mana costs; `filter?`: ObjectFilter — CR 601.3, 611.2a: only exiled cards matching this filter get the permission ("you may cast noncreature spells from among those cards", Narset, Enlightened Master); the others stay exiled; `castOnly?`: boolean — "You may cast" rather than play (no land plays); `faceDown?`: boolean — Face down (CR 708); `flash?`: boolean — CR 702.8: cast these cards as though they had flash while permission lasts; `anyMana?`: "color" | "type" — Mana may be spent as though it were mana of any color / any type to cast those spells (CR 609.4b). - `meld` — Exile this and its meld partner you own and control; put the melded card onto the battlefield. No fields. - `gainClassLevel` — Gain the next Class level. No fields. - `double` — Double a creature's power/toughness, the counters of a kind on it, or a player's life total. Fields: `what`: "power" | "toughness" | "powerAndToughness" | "counters" | "life" — What is doubled: power, toughness, both, counters or a life total; `factor?`: 2 | 3 — Multiplier 2 or 3 (default 2). Counters (CR 701.9e, 122.6): add (factor - 1) times the current count, subject to counter-placement replacements. Power / toughness (CR 701.10): +X/+0 (+0/+X) where X is (factor - 1) times the current value — "triple target creature's power"; `target?`: TargetDef — What it acts on (TargetDef); `counter?`: string — Counter kind (any string: "+1/+1", "loyalty", "time", "oil" …); `allCounters?`: boolean — CR 701.9e: multiply each kind of counter already on each selected object; absent kinds are never added; `who?`: "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 — Which player(s) — a player selector (default `you`); `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `designate` — Give (or remove) a designation: monstrous, renowned, saddled, exerted, …. Fields: `target?`: TargetDef — What it acts on (TargetDef); `designation`: string — A designation name (monarch, monstrous, renowned, saddled, suspected, prepared …); `value?`: boolean — False removes the designation instead of giving it; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes. - `adapt` — CR 701.46a: adapt N — if this permanent has no +1/+1 counters on it, put N +1/+1 counters on it (a pending "adapts as though it had no counters" waiver is spent). Fields: `amount`: ValueDef — How many / how much (integer or ValueDef). - `goad` — Goad: it attacks each combat if able and attacks a player other than you if able. Fields: `target`: TargetDef — What it acts on (TargetDef). - `unlockDoor` — CR 709.5: unlock a locked door of a Room (lockOrUnlock: lock or unlock a door); the controller chooses the door. Fields: `target`: TargetDef — What it acts on (TargetDef); `lockOrUnlock?`: boolean — Lock or unlock a door instead of only unlocking. - `suspect` — Suspect: it has menace and can't block. Fields: `target`: TargetDef — What it acts on (TargetDef). - `detain` — Detain: until your next turn it can't attack, block, or activate abilities. Fields: `target`: TargetDef — What it acts on (TargetDef). - `skipNextUntap` — CR 502.2, 611.2c: skip the controller's next untap, or a specified player's next untap step. All-object selectors stay dynamic; declared targets retain object identity. Fields: `target?`: TargetDef — What it acts on (TargetDef); `during?`: "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 — Whose untap step is skipped (default the permanent's controller); `playerTarget?`: PlayerTargetDef — The player target that `who` / `during: "target"` reads (a PlayerTargetDef: `{ "of": "player", "mode": "chosen" }`). - `explore` — e.g. “~ explores”. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `connive` — e.g. “~ connives”. Fields: `target?`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `amass` — Amass N. Fields: `target?`: TargetDef — What it acts on (TargetDef); `subtype?`: string — A subtype; `amount`: ValueDef — How many / how much (integer or ValueDef); `who?`: "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 — The player who amasses (CR 701.47a); default: the controller. - `bolster` — e.g. “bolster 1”. Fields: `amount`: ValueDef — How many / how much (integer or ValueDef). - `blight` — Blight N (CR 701.68): each blighting player puts N -1/-1 counters on a creature they control, chosen as it's done (not targeted); "the blighted creature" is target mode affected. Fields: `amount`: number | { kind: "var"; name: string } | { kind: "count"; digSubset?: "looked" | "picked" | "rest"; of?: "object" | "player"; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; filter?: ObjectFilter; player?: any } | { kind: "doneThisWay"; of: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created"; filter?: ObjectFilter; distinctOwners?: boolean; by?: any } | { kind: "playerAggregate"; op: "max" | "min"; players?: any; value: ValueDef } | … (60 options) — N: the -1/-1 counters put on the chosen creature; `who?`: "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 — The blighting players (default you); `target?`: PlayerTargetDef — A declared player who blights ("target opponent blights 2"). - `endure` — Endure N: N +1/+1 counters or an N/N white Spirit token. Fields: `amount`: ValueDef — How many / how much (integer or ValueDef); `target?`: TargetDef — What it acts on (TargetDef). - `cloak` — Cloak: face down 2/2 with ward {2}. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `collectEvidence` — CR 701.59: exile graveyard cards with total mana value N or greater; an impossible optional collection cannot be chosen. Fields: `amount`: ValueDef — How many / how much (integer or ValueDef); `optional?`: boolean — "You may": the player chooses whether to do it. - `earthbend` — Earthbend N. Fields: `target`: TargetDef — What it acts on (TargetDef); `amount`: ValueDef — How many / how much (integer or ValueDef). - `airbend` — Airbend: exile; owner may cast it for {2} while exiled. Fields: `target`: TargetDef — What it acts on (TargetDef). - `moveCounters` — Move counters from the source (default) or `from` onto the target. Fields: `anyKind?`: boolean — CR 122.5, 608.2d: choose one counter kind on the donor on resolution; `allKinds?`: boolean — CR 122.5, 608.2d: every counter of every kind on the donor ("move all counters from …"); a donor that has left the battlefield — the source of its own dies / leaves trigger, or `from` the triggering object ("put its counters on …") — hands over the counters it last had (CR 603.10a). `counter`, `amount` and `anyKind` do not apply. With distributeAny, choose zero through the available number of each counter kind on a live donor for the single recipient; `distributeAny?`: boolean — CR 122.5, 608.2d: move any number of counters distributed among the selected recipients during resolution; `from?`: TargetDef — Where / what it comes from; `target`: TargetDef — What it acts on (TargetDef); `counter?`: string — Counter kind (any string: "+1/+1", "loyalty", "time", "oil" …); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `discover` — Discover N. Subsequent effects can use var discoverDifference for the positive difference between N and the discovered card’s mana value, or zero when none qualifies (CR 701.57c). Fields: `amount`: ValueDef — How many / how much (integer or ValueDef). - `manifestDread` — Manifest dread: look at the top two cards of your library, manifest one of them (a face-down 2/2 creature) and put the other into your graveyard. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `clash` — e.g. “clash with an opponent”. Fields: `opponent?`: "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 — CR 701.30a: the opponent you clash with when the text names one ("clash with defending player"); omitted means an opponent of your choice; `then?`: EffectDef[] — Effects that follow ("then …", "if you do …"); `else?`: EffectDef[] — Effects run when the condition / choice / payment fails ("otherwise …", "if you don't …"). - `flipCoin` — Flip coin(s): then = you win, else = you lose, perWin = once per flip won. Fields: `untilLose?`: boolean — CR 705: repeat called flips until a loss; `who?`: "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 — Which player(s) — a player selector (default `you`); `amount?`: ValueDef — How many / how much (integer or ValueDef); `then?`: EffectDef[] — Effects that follow ("then …", "if you do …"); `else?`: EffectDef[] — Effects run when the condition / choice / payment fails ("otherwise …", "if you don't …"); `perWin?`: EffectDef[] — Effects run once per flip won; `perHeads?`: EffectDef[] — CR 705.2: uncalled flips (no flip is won or lost); runs once for each coin that comes up heads. Excludes then / else / perWin / untilLose. - `rollDie` — Roll a die (d20 default); the matching result's effects run. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `sides?`: number — Number of sides of the die (default 20); `reroll?`: { condition: ConditionDef; optional?: boolean } — CR 706.6: ignore a matching initial roll and reroll once before roll events; `perResult?`: EffectDef[] — After all dice are rolled, do this for each result; `chooseResult?`: boolean — CR 706.3, 608.2d: the roller chooses one result; dieResult.of chosen/other read it; `then?`: EffectDef[] — Instructions after the rolls; dieResult.of can read total/highest/lowest; `amount?`: ValueDef — How many / how much (integer or ValueDef); `add?`: ValueDef — CR 706.2: "roll a d20 and add X" — X is added to the (single) die's result before the results table is read; dieResult is the modified result; `results`: ({ min: number; max?: number; orMore?: boolean; effects: EffectDef[] })[] — Result ranges of the die roll: each `{ min, max?, effects }`. - `vote` — Each player votes; winner = most-voted option(s) run once, each = run once per vote (CR 701.38). Fields: `options`: ({ label: string; effects: EffectDef[] })[] — Named options; empty when players vote for a player (forPlayer) or an object (forObject); `tally?`: "winner" | "each" — winner: most-voted option(s) run once; each: run once per vote with current bound to the voter, an option's votes in APNAP order; afterwards the union of the votes' selections is the affected selection (CR 701.38, 101.4, 608.2c); `tieOption?`: number — CR 701.38: designated winner when the vote is tied; `extraVotes?`: ValueDef — Extra votes the controller gets; `secret?`: boolean — CR 701.38a, 101.4: each player secretly votes, then all votes are revealed together; `forPlayer?`: { otherThanVoter?: boolean } — CR 701.38a: players vote for a player; read the votes each player received with the value votes (player); `forObject?`: TargetDef — CR 701.38a, 608.2c: players vote for one of these objects; the object(s) with the most votes or tied for most become the affected selection. - `joinForces` — CR 101.4, 117.1d, 608.2g: each player, starting with you in turn order, may pay any amount of mana; all payments finish before the continuation. Fields: `effects`: EffectDef[] — CR 608.2c: continuation with X equal to the sum actually paid by all players. - `temptingOffer` — Each opponent may do the same; for each who does, you do it again. Fields: `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]). - `parley` — Parley: each player reveals their top card; run once per nonland card; then each player draws. Fields: `perNonland`: EffectDef[] — Effects run once for each nonland card revealed. - `fromOutsideGame` — Take a matching card you own from outside the game (sideboard); learn also offers discard-then-draw. Fields: `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `destination?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone the objects are put into; `optional?`: boolean — "You may": the player may decline; `learn?`: boolean — Learn: also offer "discard a card, then draw a card" instead of taking a Lesson; `reveal?`: boolean — CR 400.11, 701.20a: false when the card isn't revealed ("put a card you own from outside the game into your hand"); default true (wishes and learn print "reveal"). - `incubate` — e.g. “incubate 1”. Fields: `who?`: "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 — The player who gets the Incubator token ("its controller incubates X", CR 701.36a); default you; `amount`: ValueDef — How many / how much (integer or ValueDef). - `tokenCopyPerOpponent` — For each opponent, create a token copy attacking that player (myriad / encore). Fields: `target?`: TargetDef — What it acts on (TargetDef); `haste?`: boolean — The created tokens have haste; `cleanup`: "exileEndOfCombat" | "sacrificeEndStep" | "none" — What happens to the token copies: exiled at end of combat, sacrificed at the end step, or nothing. - `venture` — Venture into the dungeon. Fields: `dungeon?`: string — Name of the dungeon to venture into (default: the player's choice). - `choose` — Announce a legal choice while resolving; available to every later effect of this ability (CR 608.2c-d). Fields: `excludeExisting?`: boolean — CR 122.1, 608.2d: counterKind chooses from explicit options absent from target, instead of existing counters on target; `startingWithYou?`: boolean — CR 101.4, 608.2d: choose in turn order starting with the ability controller, rather than the active player; `different?`: boolean — CR 608.2d: with several choosers (kind object), each chooses an object no earlier chooser chose — "that hasn't been chosen", "a different card"; `secret?`: boolean — CR 101.4: keep choices private until reveal; `selections?`: TargetDef[] — CR 608.2d: each player makes these selections in order, then the next player chooses; `opponentsOnly?`: boolean — A player choice must be an opponent of the ability controller (CR 102.2, 608.2d); `chooseAtRandom?`: boolean — Choose one member of the selected set uniformly at random (CR 608.2c); `from?`: ObjectFilter — Choose only colors of matching objects (CR 105.1, 608.2d); `zone?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone containing the color sources; defaults to battlefield (CR 400.1); `excludePreviouslyChosen?`: boolean — Exclude earlier values chosen by this source object; reset on zone changes (CR 608.2d, 400.7); `options?`: string[] — Explicit legal values, such as a printed list of card names (CR 608.2d); `exclude?`: string[] — Forbidden choice values; colors use W/U/B/R/G codes (CR 608.2d); `kind`: "object" | "option" | "counterKind" | "creatureType" | "color" | "cardName" | "basicLandType" | "landType" | "cardType" | "landNonland" | "oddEven" | "number" | "player" — CR 608.2d: option selects one of the explicit named options; collect retains each player's answer. landType: any land type (CR 205.3i); exclude the five basic types for "a nonbasic land type"; `key?`: string — Storage key; defaults to kind; `label?`: string — Prompt shown to the chooser; `min?`: number — Fewest selections; `max?`: number — Most selections; `filter?`: { types?: string[]; notTypes?: string[]; anyTypes?: string[] } — Printed card-type restrictions on a card name, such as nonland (CR 201.4a); `who?`: "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 — Chooser; defaults to controller. When given, the chooser is also the selection's current player (player/controller/owner "current" read as theirs: each player picks from their own graveyard). When omitted the controller chooses and "current" keeps its outer binding — inside forEachPlayer the iterated player ("for each opponent, choose a permanent that player controls": you pick among that opponent's permanents); `target?`: TargetDef — kind object records a selection; counterKind reads counters on this object or player; otherwise this is the chooser player target (CR 601.2c, 608.2d, 122.1); `inline?`: boolean — Printed within the following effect as of your choice; still a resolution-time choice (CR 608.2d); `remember?`: boolean — Also retain on the source for linked later abilities (CR 607.2d); otherwise local to this resolution; `collect?`: boolean — With several choosers (who: eachPlayer), keep every player's choice: a chosenSubtype filter reading this key matches any of them — "of a type chosen this way" (CR 608.2d). Local to this resolution; `revealAs?`: "simultaneous" | "plain" — With secret collected answers (kind number, who eachPlayer), how they are revealed. simultaneous (default): all players reveal them at once and the highest and lowest are determined (Wheel of Misfortune). plain: the printed "then those numbers are revealed" with no further reveal (Menacing Ogre). Rules-neutral wording; CR 101.4. - `noteValue` — CR 107.3, 608.2h: snapshot value under key (default number) for later noted references; local restricts numeric storage to the resolution. Fields: `target?`: TargetDef — What it acts on (TargetDef); `key?`: string — Storage key of a noted value or choice (defaults to the choice's kind); `value?`: ValueDef — The value to store or compare; `local?`: boolean — CR 608.2h: store numeric value only in this resolution's variables, inherited by delayed effects; do not persist on the source; `chooseCardName?`: boolean — The noted value is a card name chosen as it resolves; `chooseColor?`: boolean — The noted value is a color chosen as it resolves. - `guess` — CR 608.2c-d: a player guesses whether a statement is true ("An opponent guesses whether the top card of your library is the chosen kind"). Read the outcome later in this resolution with the guessedRight condition ("If they guessed right, …"), usually after a reveal. Fields: `guesser?`: "opponent" | "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 — The guesser: "opponent" (default) is an opponent of your choice (you choose in a multiplayer game); a player selector names the guesser ("defending player guesses" = defendingPlayer); `condition`: { kind: "native"; id: string; params?: object; text?: string } | { kind: "kicked"; of?: "triggering"; kicker?: string } | { kind: "bargained"; of?: "triggering" } | { kind: "costPaidMatches"; cost: "sacrifice" | "discard" | "returnToHand"; noun?: "creature" | "permanent" | "artifact" | "card" | "land"; filter: ObjectFilter; thisWay?: "passive" | "active" } | { kind: "choseOption"; option: string; key?: string; who?: any } | … (53 options) — The statement guessed about, read from this ability's point of view as the guess is made: "whether the top card of your library is the chosen kind" = { kind: "topCard", who: "you", filter: { chosenKind: true } }; `key?`: string — Storage key for the guess; default "guess". - `repeat` — CR 608.2c, 608.2h: evaluate amount once, then perform effects in order that many times. Negative counts perform no instructions. Choices within effects occur on each iteration. Fields: `amount?`: ValueDef — How many / how much (integer or ValueDef); `from?`: ValueDef — Inclusive start; amount is the inclusive end (CR 608.2c); `index?`: string — Locally bound index variable for each number (CR 107.1); `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]); `process?`: boolean — CR 608.2c: "repeat this process" — run effects again after each pass in which a nested repeatProcess executed. Inside a pass, "this way" (doneThisWay, thisWay) reads only that pass's actions ("If an Insect card was milled this way, … repeat this process"); `cumulative?`: boolean — With process: "this way" spans every pass so far, not only the current one (CR 608.2c: "unless it has the same name as another card exiled this way", Tainted Pact). - `repeatProcess` — CR 608.2c: repeat the enclosing repeat { process: true } after this pass. Fields: `optional?`: boolean — CR 608.2d: "you may repeat this process any number of times"; `once?`: boolean — CR 608.2c: "repeat this process once" — only the first pass may start one more pass. - `forEachObject` — CR 608.2c, 608.2h, 400.7: process a fixed object selection once per object. Each body starts with that object as affected; thisWay retains action-time controller/owner information, including tokens. A thisWay target.zone restricts the recorded action destination (CR 614.1), including tokens that later cease to exist. Fields: `target`: TargetDef — What it acts on (TargetDef); `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]); `simultaneous?`: boolean — CR 614.12, 608.2c: the passes' entries are one simultaneous event ("put those cards onto the battlefield" after searching for each); no card entering modifies how another enters. - `forEachPlayer` — CR 101.4, 601.2c, 608.2c: process each player in APNAP order, binding current to them. Declare nested chosen targets once per player when putting the spell/ability on the stack. Fields: `players`: "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" | { kind: "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"; span?: number; where?: ConditionDef; except?: any; most?: ValueDef; fewest?: ValueDef } — The players iterated in APNAP order (CR 101.4); any player selector; `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]); `atAnnouncement?`: true — CR 601.2c, 603.3d: fix the players when targets are announced, including when no player qualifies; `simultaneous?`: boolean — CR 608.2c, 120.2b: the passes are one simultaneous damage event ("~ deals damage to each player equal to the number of nonbasic lands that player controls"; Incite Rebellion: the damage is dealt simultaneously) — lifelink gains once and each prevention effect triggers and finishes once (CR 120.3f, 615.13, 615.5). - `forEachCardType` — CR 205.2a, 608.2c: "for each card type among permanents …" — the types are fixed as this starts; effects run once per type (artifact, battle, creature, enchantment, kindred, land, planeswalker) with it as the chosen card type (filter chosenType: "a permanent card of that type"). Fields: `among`: { native?: object; exclude?: any; anyOf?: ObjectFilter[]; types?: string[]; anyTypes?: string[]; subtypes?: string[]; supertypes?: string[]; colors?: string[]; notTypes?: string[]; notSubtypes?: string[]; notSupertypes?: string[]; notColors?: string[]; colorless?: boolean; multicolored?: boolean; monocolored?: boolean; colorCount?: number; minCardTypes?: number; controller?: Relation; owner?: "you" | "opponent" | "any" | "notYou" | "current"; kicked?: boolean; sharesColorWithTriggeringMana?: boolean; manaSpentToCast?: object; manaSpentFrom?: object; castFrom?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; notCastFrom?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; convoked?: boolean; enteredFrom?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; hasHybridMana?: boolean; manaCostContains?: string; hasAdventure?: boolean; withKeyword?: string; hasBasicLandType?: boolean; hasNonbasicLandType?: boolean; withKeywordAbility?: string; withoutKeywordAbility?: string; withTapAbility?: boolean; withAbility?: "activated" | "triggered" | "mana" | "nonManaActivated"; withoutManaAbility?: boolean; withoutAbilities?: boolean; withoutKeyword?: any; tapped?: boolean; isRingBearer?: boolean; isToken?: boolean; attacking?: boolean; attackingAlone?: boolean; tappedForSourceThisTurn?: "crew" | "saddle"; attackedThisTurn?: boolean; canAttack?: boolean; blockedThisTurn?: boolean; wasBlockedThisTurn?: boolean; attackingPlayer?: any; attackingPlaneswalkerControlledBy?: any; blocking?: boolean; blocked?: boolean; modified?: boolean; bandedWithSource?: boolean; minPowerOrToughness?: number; maxPowerOrToughness?: number; minPowerPlusToughness?: number; maxPowerPlusToughness?: number; minPower?: number; maxBasePower?: number; maxBaseToughness?: number; basePower?: number; baseToughness?: number; powerAboveBase?: boolean; maxPower?: number; minToughness?: number; maxToughness?: number; minToughnessValue?: any; maxToughnessValue?: any; minManaValueValue?: any; minManaValue?: number; maxManaValue?: number; manaValueValue?: any; manaValues?: number[]; manaCosts?: string[]; maxManaValueValue?: any; manaValueVar?: string; hasCounter?: string; inZone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; suspended?: boolean; withoutCounter?: string; self?: boolean; other?: boolean; otherThanTrigger?: boolean; otherThanAffected?: boolean; name?: string; nameOf?: "self" | "affected"; host?: boolean; attachedToSource?: boolean; attachedToReference?: "affected" | "triggering" | "triggeringOther"; attachedTo?: any; sharesWithHost?: "creatureType" | "color" | "cardType"; attachedToHost?: boolean; enchanted?: boolean; hasAttachment?: object; enchantedByOther?: boolean; equipped?: boolean; notAffected?: boolean; notChosenSubtype?: boolean | string; chosenSubtype?: boolean | string; chosenColor?: boolean | string; chosenParity?: boolean | string; chosenPowerParity?: boolean | string; manaValueParity?: "odd" | "even"; chosenKind?: boolean | string; chosenType?: boolean | string; chosenName?: boolean | string; chosenBy?: "controller" | "owner"; comparedToSource?: object; comparedToTrigger?: object; maxManaValueVar?: string; minManaValueVar?: string; minPowerValue?: any; maxPowerVar?: string; maxPowerValue?: any; designation?: string; withoutDesignation?: string; attachedToSameHost?: boolean; isCommander?: boolean; linkedToSource?: boolean; putWithSource?: boolean; phasedOut?: boolean; faceDown?: boolean; sharesWithSource?: "creatureType" | "cardType" | "color" | "name"; sharesWithSacrificed?: "creatureType" | "cardType" | "color" | "name"; notSharesLandTypeWith?: object; sharesWithTarget?: "creatureType" | "cardType" | "color" | "name"; sharesWith?: object; comparedTo?: object; attachedToSelection?: any; inSelection?: any; targetableByTriggering?: boolean; targetOfTriggering?: boolean; controllerOfTriggeringTarget?: boolean; combatWith?: object; discardedThisTurn?: boolean; enteredGraveyardThisTurn?: true | "fromAnywhere" | "fromBattlefield" | "fromLibrary" | "milled"; attached?: boolean; enteredThisTurn?: boolean; alreadyOnBattlefield?: boolean; enteredThisTurnUnder?: any; damagedThisTurn?: boolean; dealtDamageThisTurn?: boolean; dealtDamageToThisTurn?: any; dealtCombatDamageToThisTurn?: any; counterPlacedThisTurnBy?: "you"; damagedBySource?: boolean; damagedByHost?: boolean; damagedThisTurnBy?: any; drawnThisTurn?: boolean; fromStartingDeck?: boolean; minCounters?: number; hasSticker?: "any" | "name" | "art" | "ability" | "pt"; onSprocket?: 1 | 2 | 3 | "crank"; isHost?: boolean; hasAugment?: boolean } — The battlefield permanents whose card types are counted ("permanents your opponents control": { controller: "opponent" }); `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]). - `pair` — Soulbond: pair the source with another unpaired creature you control. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `unattach` — e.g. “unattach ~”. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `extraTurn` — e.g. “you take an extra turn after this one”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `atEnd?`: EffectDef[] — CR 500.7, 603.7: delayed effects at the beginning of this particular extra turn's end step; other extra turns do not satisfy it, and a skipped turn has no end step; `skipUntap?`: boolean — CR 500.7, 614.10: "Skip the untap step of that turn."; `noSchemes?`: boolean — CR 701.32a, 904.9: "Schemes can't be set in motion that turn." — neither the archenemy's turn-based action nor an effect sets a scheme in motion during that extra turn. - `additionalCombat` — CR 500.8, 506.1: after the current phase, add a combat phase without an implicit untap or main phase. Fields: `followedByMain?`: boolean — "… followed by an additional main phase" (CR 505.1a): a main phase follows the added combat before the turn resumes. - `additionalPhase` — CR 500.8, 501.1: "there is an additional beginning phase after this phase" — the phase is inserted directly after the current one (the most recently created first), then the turn resumes where it left off. Gets an additional upkeep step after this step" (CR 500.8) adds an upkeep step directly after the upkeep step that is in progress. Fields: `phase`: "beginning" | "upkeep" — The kind of phase added: the beginning phase (untap, upkeep and draw steps) or an additional upkeep step; `who?`: "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 — The player the added upkeep step is for ("that player gets an additional upkeep step"); it is added to the turn being taken. - `skipStep` — e.g. “you skip your next untap step”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `step`: "untap" | "draw" | "combat" | "turn" — Which step or turn is skipped; `thisTurn?`: boolean — CR 500.11: with combat, "skips their next combat phase this turn" — lapses at the end of this turn; `allOfNextTurn?`: boolean — CR 500.11: with combat, "skips all combat phases of their next turn" — every combat phase of the next turn they take. - `becomeMonarch` — e.g. “you become the monarch”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef). - `setDayNight` — CR 730.1, 730.3: "it becomes day / night"; nothing happens if it already is. Fields: `to`: "day" | "night" — Day or night. - `temptRing` — CR 701.64 (formerly 701.52): the Ring tempts you; gain its next ability and choose a creature you control as Ring-bearer. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `takeInitiative` — e.g. “you take the initiative”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef). - `phaseOut` — e.g. “target creature phases out”. Fields: `target`: TargetDef — What it acts on (TargetDef); `untilSourceLeaves?`: boolean — CR 702.26: "phases out until this enchantment leaves the battlefield" — no untap-step phase-in; it phases in immediately after the source leaves. Nothing phases out if the source already left; `phaseInTapped?`: boolean — With untilSourceLeaves: "Tap that creature as it phases in this way" — it phases in tapped (no becomes-tapped trigger). - `exchangeControl` — Exchange two permanents atomically; target may select exactly two, or second defaults to the source (CR 701.12a-b). Fields: `target`: TargetDef — What it acts on (TargetDef); `second?`: TargetDef — The second object of the exchange (default the source). - `startEngines` — e.g. “start your engines!”. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `ascend` — CR 702.131a: resolving ascend grants the city's blessing if you control ten or more permanents. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `conjure` — Conjure a card (by library id, or a duplicate of the target) into a zone. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: PlayerTargetDef — The declared player that who "target" reads ("that player conjures …", CR 115.1, 608.2c); `cardId?`: string — Library id of the card conjured; `choices?`: string[] — Printed named alternatives; the conjuring player chooses one at resolution (Izzet Polarizer); `chooseAtRandom?`: boolean — Sample one named alternative uniformly, without a player choice (CR 608.2c analogue); `copyOf?`: TargetDef — A selection whose card is duplicated; `destination?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone the objects are put into; `position?`: "top" | "bottom" — Top or bottom of the library; `randomWithinTop?`: number — Insert each conjured card at a uniformly random position among the final top N cards; leave existing library cards in order (CR 401.2 analogue); `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `attacking?`: boolean — "onto the battlefield tapped and attacking": a conjured permanent enters attacking, without being declared (CR 508.4); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `seek` — Seek: a random matching card from your library into your hand. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `amount?`: ValueDef — How many / how much (integer or ValueDef); `fromTop?`: ValueDef — "from among the top N cards of your library": only those N cards, fixed when the effect starts, are candidates; `shuffle?`: boolean — "…, then shuffle": the seeking player shuffles their library afterwards (CR 701.24); `pick?`: "highestManaValue" — "seek a card with the highest mana value among …": only the candidates of greatest mana value are sought, at random among them (Alchemy; CR 202.3). - `draft` — Draft: choose one of three distinct random entries from the source card's spellbook and conjure it into hand. Requires supplied spellbook data. The drafted cards are the effect's selection ("and reveals it"). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: PlayerTargetDef — The declared player that who "target" reads ("target opponent drafts …", CR 115.1). - `perpetualManaCost` — Perpetually replace the card's mana cost, or reduce its generic symbols. This changes mana value and survives zone changes. Fields: `target`: TargetDef — What it acts on (TargetDef); `manaCost?`: string — Mana cost in braces, e.g. "{2}{G}{G}"; `reduce?`: number — Reduce the generic part of the mana cost by this much. - `intensify` — Increase persistent intensity by amount (default 1). Default target is the source; allOwned selects cards the controller owns in every zone, narrowed by filter. Fields: `target?`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — How many / how much (integer or ValueDef); `allOwned?`: boolean — Every card you own in every zone (narrowed by `filter`) instead of the source; `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together). - `specialize` — Change the source into a specialization allowed by the card discarded to activate specialize. No fields. - `unspecialize` — Revert to the printed base card. returnTapped returns it from the graveyard tapped only if it unspecialized this way. Fields: `target?`: TargetDef — What it acts on (TargetDef); `returnTapped?`: boolean — Return it to the battlefield tapped if it unspecialized this way. - `oneTimeBoon` — Give a player a floating triggered ability that persists after its source leaves and is consumed when it first triggers (or after `uses` triggers). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `trigger`: TriggerDef — The TriggerDef: which event, whose, which object; `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]); `uses?`: number — An N-time boon ("you get a three-time boon with …"): it triggers up to this many times, each trigger using one; absent = one-time. - `spellEntersWith` — The spell's permanent enters with the specified counters or temporary ability, or enters tapped (CR 614.1c). Amounts are read now, with it = that spell. Fields: `target`: TargetDef — What it acts on (TargetDef); `counters?`: ({ counter: string; amount: ValueDef })[] — Counters it enters with: each `{ counter, amount }`; `additional?`: boolean — Counters in addition to those it would otherwise enter with; `tapped?`: boolean — Tapped (true) or untapped (false); on an effect that puts something onto the battlefield, it enters tapped; `keywordUntilNextTurn?`: KeywordAbilityDef — The permanent that this spell becomes enters with this keyword ability until your next turn. - `heist` — Heist the targeted opponent's library: sample three distinct random nonlands, choose one to exile face down; you may cast it while exiled using mana of any type. Repeat amount times (default 1). Fields: `target`: PlayerTargetDef — What it acts on (TargetDef); `amount?`: number — How many / how much (integer or ValueDef). - `openAttraction` — Open an Attraction: the top card of your Attraction deck onto the battlefield. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `rollToVisit` — Roll to visit your Attractions. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `claimPrize` — Claim the prize: run this Attraction's Prize effects. No fields. - `assembleContraption` — Assemble a Contraption onto a sprocket of your choice. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `reassembleContraption` — Gain control of target Contraption and move it onto one of your sprockets. Fields: `target`: TargetDef — What it acts on (TargetDef). - `moveContraption` — Move target Contraption to another sprocket. Fields: `target`: TargetDef — What it acts on (TargetDef); `sprocket?`: 1 | 2 | 3 — Sprocket 1, 2 or 3. - `crank` — Crank the target Contraption(s). Fields: `target`: TargetDef — What it acts on (TargetDef). - `advanceCrank` — Move your CRANK! counter to the next sprocket and crank that sprocket's Contraptions. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `any?`: boolean — Unfinity crank variant flag; leave unset unless a stock example uses it. - `setInMotion` — Set a scheme in motion (CR 701.32): turn the top card of the player's scheme deck face up in the command zone; its "When you set this scheme in motion" abilities trigger. amount times, one at a time (CR 701.32c). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `amount?`: ValueDef — How many / how much (integer or ValueDef); `target?`: TargetDef — CR 701.32b: a particular scheme ("set that scheme in motion again": { of: "object", mode: "triggering" }) instead of the top of the scheme deck; it is set in motion even if it is already face up. - `chooseSelfOrOthers` — Archenemy (CR 904, 608.2d): "target opponent chooses self or others. If that player chooses self, … If the player chooses others, …". Fields: `who?`: "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 — The chooser; default the declared target player; `target?`: PlayerTargetDef — What it acts on (TargetDef); `self`: EffectDef[] — Runs if they choose self, with the chooser as current ("that player sacrifices two creatures"); `others`: EffectDef[] — Runs if they choose others, with the chooser as current ("each of your other opponents": { kind: "eachOpponent", except: "current" }). - `abandon` — Abandon this scheme (CR 701.33): the face-up ongoing scheme that is the source is turned face down and put on the bottom of its owner's scheme deck. No fields. - `putSticker` — Put a sticker on the target: choose an unused sticker from your sheets and pay its ticket cost. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `kinds?`: ("name" | "art" | "ability" | "pt")[] — Which sticker kinds may be chosen: name, art, ability, pt; `amount?`: ValueDef — How many / how much (integer or ValueDef). - `combineAugment` — Combine this augment card with target host. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `empower` — Empower N: put N loyalty counters on a token you control with that name, creating it first if you control none. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `tokenName`: string — Name of the token to empower (created first if you control none); `token`: { name: string; supertypes?: string[]; types?: string[]; subtypes?: string[]; colors?: string[]; manaCost?: string; power?: ValueDef; toughness?: ValueDef; keywords?: string[]; abilities?: AbilityDef[]; abilitiesInFollowingSentence?: boolean; keywordAbilities?: KeywordAbilityDef[]; tokenDefId?: string; withCounters?: object } — The complete inline token spec (TokenSpec: name, types, subtypes, colors, power, toughness, keywords, abilities …); `amount`: ValueDef — How many / how much (integer or ValueDef). - `timeTravel` — Time travel: add or remove a time counter on each suspended card you own and each permanent you control with a time counter. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `recruit` — Recruit: draw, then discard; if a nonland card was discarded, create a 1/1 white Human Soldier token. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`). - `assimilate` — Assimilate: the creature card enters under your control with a +1/+1 counter as a Borg artifact creature with no other creature types. Fields: `target`: TargetDef — What it acts on (TargetDef). - `fateseal` — Fateseal N: look at the top N cards of an opponent's library and put any number of them on the bottom. Fields: `amount`: ValueDef — How many / how much (integer or ValueDef); `target?`: TargetDef — What it acts on (TargetDef). - `manifest` — Manifest the specified number of cards face down as 2/2 creatures. Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `from?`: "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 — CR 701.40, 110.2: manifest from this single player's library under who's control; omitted uses who's library; `amount?`: ValueDef — How many / how much (integer or ValueDef); `fromZone?`: "library" | "hand" — CR 701.40: library top by default; hand cards are chosen privately by the manifesting player. - `turnFaceUp` — e.g. “turn ~ face up”. Fields: `target?`: TargetDef — What it acts on (TargetDef). - `turnFaceDown` — CR 708.2a: turn a face-up permanent face down — the same object, now a 2/2 face-down creature; it turns face up again only through morph / megamorph / disguise. Double-faced permanents can't be turned face down (CR 712). Fields: `target?`: TargetDef — The permanents turned face down (default: the source); `as?`: { types: string[]; subtypes?: string[] } — CR 708.2: the face-down characteristics the effect lists ("It's a 2/2 Cyberman artifact creature"); always 2/2, nameless, textless, without mana cost. - `investigate` — Investigate: create a Clue token ("{2}, Sacrifice this artifact: Draw a card."). Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `amount?`: ValueDef — How many / how much (integer or ValueDef). - `exileUntilSourceLeaves` — e.g. “exile target creature until ~ leaves the battlefield”. Fields: `target`: TargetDef — What it acts on (TargetDef). - `flicker` — e.g. “exile target creature, then return that card to the battlefield under its owner's control”. Fields: `target`: TargetDef — What it acts on (TargetDef); `delayed?`: boolean — Return it at the beginning of the next end step instead of immediately. - `retarget` — CR 115.7: change existing targets to legal targets, retaining count and division. single changes one target; to fixes the new recipient. Fields: `target`: TargetDef — What it acts on (TargetDef); `to?`: TargetDef — What it applies to (TargetDef); `single?`: boolean — Change only one of the targets; `optional?`: boolean — "You may": the player chooses whether to do it; `newTargets?`: boolean — CR 115.7d: "you may choose new targets for …" — each target may be kept (even if illegal) or changed to a new legal target; the final set must be legal together. - `copyAbility` — CR 707.10: copy an activated or triggered ability and its choices; optionally choose new targets. Fields: `target`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — How many copies ("copy … twice"); default one; `newTargets?`: boolean — The copy may have new targets chosen for it. - `copySpell` — Copy target spell (default: the source spell itself); `amount` copies (storm). Fields: `target?`: TargetDef — What it acts on (TargetDef); `amount?`: ValueDef — How many / how much (integer or ValueDef); `controller?`: "chosenOpponent" | "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 — Who controls the copy (CR 707.10): chosenOpponent prompts the controller for an opponent as it resolves; any player selector names the copier directly (the Chain cycle); `newTargets?`: boolean — CR 707.10: false retains targets; default true preserves legacy copies; `except?`: { keywords?: string[]; keywordAbilities?: KeywordAbilityDef[]; abilities?: any[]; addTypes?: string[]; addSubtypes?: string[]; setTypes?: string[]; setSubtypes?: string[]; removeSubtypes?: string[]; colors?: string[]; addColors?: string[]; power?: ValueDef; toughness?: ValueDef; loyalty?: ValueDef; notLegendary?: boolean; legendary?: boolean; name?: string; noManaCost?: boolean } — CR 707.9: exceptions the copies are made with ("the copy isn't legendary and has starting loyalty X"); a permanent spell's copy becomes a token with them; `copyTargets?`: TargetDef — CR 707.10d-e: one copy for each object this selects (amount and newTargets don't apply), every target of that copy changed to that object — "copy that spell for each other creature you control that the spell could target. Each copy targets a different one of those creatures", "The copy targets the chosen creature". An object that isn't a legal target for each instance of the word target gets no copy. - `copyCard` — Cast a copy of each selected card. Set optional and payManaCost for "you may cast the copies" at normal cost. For a group, its controller chooses the casting order during resolution (CR 707.12). Fields: `target?`: TargetDef — What it acts on (TargetDef); `chosenName?`: boolean | string — Create the named card copy using the earlier choice (CR 707.13); `payManaCost?`: boolean — Pay the copy's mana cost; otherwise waived (CR 707.12-13). With a target: "You may cast the copy" (paying its costs) rather than "… without paying its mana cost"; `optional?`: boolean — "You may": the player chooses whether to do it. - `link` — Link the target to the source (see target mode linked / filter linkedToSource). Fields: `target`: TargetDef — What it acts on (TargetDef). - `ripple` — Ripple N: reveal the top N; cast any with the same name free; rest to the bottom. Fields: `amount`: ValueDef — How many / how much (integer or ValueDef). - `encode` — Cipher: exile the source spell card encoded on the target creature. Fields: `target`: TargetDef — What it acts on (TargetDef). - `reflexiveTrigger` — When you do (CR 603.12): a separate triggered ability about the objects just acted on; choose its targets on the stack. Fields: `about?`: TargetDef — Optional fixed objects this trigger refers to; omitted for a payment-only trigger; `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]); `modes?`: ({ label: string; effects: EffectDef[]; weight?: number; cost?: CostDef })[] — CR 603.12, 700.2a: "When you do, choose one —": the reflexive ability's modes, chosen as it goes on the stack; effects is then empty; `chooseMin?`: number — Minimum number of modes chosen (default 1; 0 for "choose any number"); `chooseMax?`: ValueDef — CR 700.2a, 107.3: maximum modes of the reflexive ability; `condition?`: ConditionDef — CR 603.12: it triggers only if this holds as the preceding action finishes ("When you reveal one or more nonland cards this way, …"). - `delayedTrigger` — Set up a delayed triggered ability (CR 603.7): "at the beginning of the next end step, …", "when that creature dies this turn, …", "whenever that creature is dealt damage this turn, …". Fields: `stepPlayer?`: "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 — CR 603.7d: snapshot whose next step to wait for on creation, independently of the ability controller (for example owner for Phytotitan); `nextTurn?`: boolean — Wait for a subsequent turn (CR 603.7); combined with trigger.by: you, the specified step on your next turn; `trigger`: TriggerDef — The TriggerDef: which event, whose, which object; `effects`: EffectDef[] — The effects, resolved in order (EffectDef[]); `about?`: TargetDef — The object(s) or player the delayed trigger is about, fixed once as it is created (CR 603.7c): mode chosen = a target of this spell / ability ("Choose target creature. Whenever that creature …"), affected = what the previous effect applied to ("~ deals 3 damage to target creature. When that creature dies this turn, …"). The ability then triggers only for those objects (a new object after a zone change no longer counts, CR 400.7; dies / leaves look back). Inside `effects`, mode about / triggering refer to it; `duration?`: Duration — How long it waits: endOfTurn = "this turn", endOfCombat = "this combat", untilYourNextTurn. Without one it triggers once, the next time the event happens (CR 603.7b); with one it triggers every time ("whenever") until then; `once?`: boolean — With a duration: trigger only once even so ("when that creature dies this turn", "when you next cast a spell this turn"); `optional?`: boolean — "You may" — asked as the delayed trigger resolves. - `replacement` — Create a replacement effect for a duration (default end of turn): "prevent all combat damage that would be dealt this turn", "if that creature would die this turn, exile it instead". once = applies to one event ("the next time …"); budget = the total amount it prevents / redirects ("the next 3 damage"). Fields: `replacement`: { replaces: "event"; event: "damage" | "draw" | "drawBatch" | "beginTurn" | "beginStep" | "dies" | "toGraveyard" | "leavesBattlefield" | "enters" | "destroy" | "counter" | "copySpell" | "untap" | "createTokens" | "putCounters" | "lifeGain" | "lifeLoss" | "loseGame" | "loseMana" | "addMana" | "mill" | "searchLibrary" | "rollDice" | "flipCoin" | "explore" | "connive" | "scry" | "proliferate" | "setInMotion"; to?: TargetDef; toPlayer?: any; from?: TargetDef; by?: any; lifeLossBy?: any; damageKind?: "combat" | "noncombat"; minAmount?: ValueDef; maxAmount?: ValueDef; exactAmount?: ValueDef; counter?: string; extraTurnOnly?: boolean; step?: "untap" | "draw"; duringUntapStep?: boolean; firstEachTurn?: boolean; manaColor?: string; coloredManaOnly?: boolean; manaFromColors?: string[]; manaPlayers?: any; manaAdditional?: string[]; manaMultiply?: number; manaExact?: string; manaOneColor?: boolean; tappedForMana?: boolean; enterController?: any; chooseEnterController?: boolean; enterTapped?: boolean; enterAttacking?: boolean; enterCounters?: object[]; enterAs?: EffectDef[]; tokenReplace?: object[]; tokenChoices?: object[]; tokenAdditional?: object[]; tokenAdditionalOnce?: object[]; shuffleOwnedIntoLibrary?: boolean; randomResults?: object; dieSides?: number; searchTop?: number; ownLibrary?: boolean; regenerate?: boolean; removeDamage?: boolean; removeCounterToUntap?: string; removeAllCounters?: string; tokenFilter?: ObjectFilter; fromZone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; toZone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; orEvents?: object[]; discarded?: boolean; causedBy?: "opponent"; notCast?: boolean; exceptFirstInDrawStep?: boolean; condition?: ConditionDef; optional?: boolean; prevent?: boolean; preventAmount?: ValueDef; preventAllBut?: ValueDef; multiply?: number; add?: ValueDef; newTargets?: boolean; addDieRoll?: number; half?: "up" | "down"; set?: ValueDef; redirectTo?: TargetDef; lifeFloor?: ValueDef; zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; position?: "top" | "bottom"; shuffle?: boolean; link?: boolean; instead?: EffectDef[]; then?: EffectDef[] } — A general replacement effect: which event, which objects / players / sources, and what happens instead; `duration?`: Duration — CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes; `once?`: boolean — Applies only once (to the next matching event), then ends; `budget?`: ValueDef — Total amount this effect may prevent or redirect ("the next 3 damage"). - `reveal` — Reveal cards without moving them; object mode random selects on resolution (CR 701.20a, 608.2d). A prompt beginning "looks at" makes it a private look instead ("look at target player's hand"): only the controller sees the cards, for one acknowledgement decision, and nothing is revealed (CR 701.20a). Fields: `target?`: TargetDef — What it acts on (TargetDef); `zone?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — A zone name (battlefield, hand, graveyard, library, exile, stack, command); `prompt?`: string — Prompt text shown to the deciding player. - `if` — Conditional instructions (CR 608.2). Kicker/additional/alternative cost choices determine branch-specific targets during casting (CR 601.2c); identical targets in alternatives share a slot. Fields: `condition`: ConditionDef — A ConditionDef that must hold; `then`: EffectDef[] — Effects that follow ("then …", "if you do …"); `else?`: EffectDef[] — Effects run when the condition / choice / payment fails ("otherwise …", "if you don't …"). - `ifDone` — CR 608.2c, 609.3: perform the mandatory action as far as possible, then branch on full completion. Fields: `action`: { effect: "discard"; amount: ValueDef } | { effect: "tap"; target: TargetDef } | { effect: "removeCounters"; target: TargetDef; counter?: string; amount: any } | { effect: "moveTo"; target: TargetDef; destination: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; position?: "top" | "bottom"; tapped?: boolean; transformed?: boolean; controller?: "you" | "owner" } | { effect: "bounce"; target: TargetDef } | … (7 options) — The mandatory action; `then` runs only if it was done in full (CR 609.3); `then`: EffectDef[] — Effects that follow ("then …", "if you do …"); `else?`: EffectDef[] — Effects run when the condition / choice / payment fails ("otherwise …", "if you don't …"); `failure?`: "cant" — Render the failure branch as if you cannot perform the action. - `villainousChoice` — CR 608.2d: each affected player chooses one of two instructions; current is that player and you remains the controller. Fields: `who`: "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 — Which player(s) — a player selector (default `you`); `options`: any[] — The two instructions the player chooses between. - `optional` — CR 608.2d: optional instructions, with current bound to the deciding player. Fields: `who?`: "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 — CR 608.2d: each selected player makes their own yes/no choice; defaults to you. You in the body remains the source's controller; `target?`: PlayerTargetDef — CR 115.1: declared player target when who is target; `prompt?`: string — Prompt text shown to the deciding player; `then`: EffectDef[] — Effects that follow ("then …", "if you do …"); `else?`: EffectDef[] — Effects on declining the optional action (CR 608.2d); `onceEachTurn?`: boolean — "Do this only once each turn": the ability still triggers and resolves, but once the action has been taken this turn the choice is no longer offered (declining keeps it available later in the turn). - `mayPay` — Optional payment with If you do / When you do and an optional failure branch (CR 118.12, 603.12). Fields: `paymentForm?`: "unlessPrefix" | "anyPlayer" — CR 118.12: equivalent printed payment form; does not alter who pays or which branch resolves; `repeatable?`: boolean — CR 118.12, 603.12: pay zero or more times; then runs once if paid, with timesPaid resolution bound to the payment count; `cost`: CostDef — The cost (CostDef); `then`: EffectDef[] — Effects that follow ("then …", "if you do …"); `else?`: EffectDef[] — Effects run when the condition / choice / payment fails ("otherwise …", "if you don't …"); `who?`: "anyPlayer" | "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 — Who is offered the payment: anyPlayer = in APNAP order, the first payer prevents the else branch (CR 101.4, 118.12); a player selector ("that player may pay {2}") offers it to those players — the then / else branches still belong to the source's controller ("If the player doesn't, you create a Treasure token"); `target?`: TargetDef — CR 118.12, 601.2c: player target or an object/stack target whose controller may pay (who: affectedController). Selected before evaluating the cost; branches read mode affected; `chooseX?`: { min?: number; max?: ValueDef } — Choose X at resolution within these bounds, then pay that value; the body reads the paid X (CR 107.3). - `unlessPays` — Each affected player may pay the cost; for each who doesn't, `then` runs with that player as "you". Fields: `who?`: "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 — Which player(s) — a player selector (default `you`); `target?`: TargetDef — What it acts on (TargetDef); `cost`: CostDef — The cost (CostDef); `then`: EffectDef[] — Effects that follow ("then …", "if you do …"); `prompt?`: string — Prompt text shown to the deciding player. **Registered `native` ids.** These are **all** the ids this engine registers for `native` effects; a card naming any other id is rejected when it is saved and when a game is dealt. Never invent one — a clause no native implements is a `tableRuling` step. - `magic.keepOnePerTypeSacrificeRest` — Each player keeps one permanent of each listed type (chosen by you or by that player) and sacrifices every other matching permanent. Params: `types` (non-empty list of card types, one kept of each), `chooser` (`"you"` or `"eachPlayer"`, default eachPlayer), `nonland` (default true: lands are spared). Tragic Arrogance: `{ "types": ["Artifact", "Creature", "Enchantment", "Planeswalker"], "chooser": "you" }`; Cataclysm adds `"Land"` to `types` with `"nonland": false`. ### Stock examples - `drawCards` — Least Discard Study: “” → `{"effect":"drawCards","who":"eachPlayer","amount":{"kind":"playerAggregate","op":"min","value":{"kind":"doneThisWay","of":"discarded","filter":{"owner":"current"}}}}` - `discard` — Least Discard Study: “” → `{"effect":"discard","who":"eachPlayer","wholeHand":true}` - `mill` — Vastlands Scavenger: “This creature enters prepared.” → `{"effect":"mill","who":"you","amount":7}` - `scry` — Iteration 71 scry two: “” → `{"effect":"scry","amount":2}` - `surveil` — Iteration 71 surveil: “” → `{"effect":"surveil","amount":1}` - `dealDamage` — Bonecrusher Giant: “Stomp {1}{R} — Instant — Adventure: Stomp deals 2 damage to any target.” → `{"effect":"dealDamage","target":{"of":"any","mode":"chosen"},"amount":2}` - `setLife` — Ten Life: “Each player's life total becomes 10.” → `{"effect":"setLife","who":"eachPlayer","amount":10}` - `exchangeLife` — Exchange: “Exchange life totals with target player.” → `{"effect":"exchangeLife","who":"you","target":{"of":"player","mode":"chosen"}}` - `exchangeLifeWithStat` — Evra, Halcyon Witness: “{4}: Exchange your life total with Evra's power.” → `{"effect":"exchangeLifeWithStat","who":"you","object":{"of":"object","mode":"self"},"stat":"power"}` - `duelReveal` — Keen Duelist: “At the beginning of your upkeep, you and target opponent each reveal the top card of your library. You each lose life equal to the mana value of the card revealed by the other player. You each put the card you revealed into your hand.” → `{"effect":"duelReveal","target":{"of":"player","mode":"chosen","player":"eachOpponent"},"withYou":true}` - `gainLife` — Iteration 71 Adventurer: “” → `{"effect":"gainLife","amount":1}` - `loseLife` — Variable Tap Witness: “” → `{"effect":"loseLife","who":"eachOpponent","amount":{"kind":"var","name":"X"}}` - `destroy` — Destroy Study: “” → `{"effect":"destroy","target":{"of":"object","mode":"chosen"}}` - `exile` — Cohort Exile: “” → `{"effect":"exile","target":{"of":"object","mode":"all","filter":{"name":"Cohort Merfolk"}}}` - `bounce` — Cohort Bounce: “” → `{"effect":"bounce","target":{"of":"object","mode":"all","filter":{"name":"Cohort Merfolk"}}}` - `moveTo` — Cohort Return: “” → `{"effect":"moveTo","target":{"of":"object","mode":"all","zone":"graveyard","filter":{"owner":"you","name":"Cohort Merfolk"}},"destination":"battlefield"}` - `sacrifice` — Sacrifice Instruction: “” → `{"effect":"sacrifice","target":{"of":"object","mode":"choose","filter":{"types":["Creature"]}}}` - `tap` — Cohort Tap: “” → `{"effect":"tap","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"you"}}}` - `untap` — Combat Celebrant: “If this creature hasn't been exerted this turn, you may exert it as it attacks. When you do, untap all other creatures you control and after this phase, there is an additional combat phase.” → `{"effect":"untap","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"you","other":true}}}` - `removeFromCombat` — Illusionist's Gambit: “Remove all attacking creatures from combat and untap them. After this phase, there is an additional combat phase. Each of those creatures attacks that combat if able. They can't attack you or planeswalkers you control that combat.” → `{"effect":"removeFromCombat","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"attacking":true}}}` - `endTurn` — Discontinuity: “During your turn, this spell costs {2}{U}{U} less to cast.” → `{"effect":"endTurn"}` - `endCombat` — Mandate of Peace: “Cast this spell only during combat.” → `{"effect":"endCombat"}` - `suspendCard` — The Eleventh Doctor: “I. AM. TALKING! — Whenever The Eleventh Doctor deals combat damage to a player, you may exile a card from your hand with a number of time counters on it equal to its mana value. If it doesn't have suspend, it gains suspend.” → `{"effect":"suspendCard","target":{"of":"object","mode":"affected"}}` - `plotCard` — Aven Interrupter: “When this creature enters, exile target spell. It becomes plotted.” → `{"effect":"plotCard","target":{"of":"object","mode":"thisWay","action":"exiled"}}` - `addCounters` — Iteration 71 crime: “” → `{"effect":"addCounters","target":{"of":"object","mode":"self"},"counter":"test","amount":1}` - `tapOrUntap` — Flexible Touch: “You may tap or untap target creature.” → `{"effect":"tapOrUntap","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}}` - `removeCounters` — Counter Pruning: “Remove a counter from target permanent.” → `{"effect":"removeCounters","target":{"of":"object","mode":"chosen","filter":{}},"counter":"any","amount":1}` - `modifyPT` — Iter62 Aim: “” → `{"effect":"modifyPT","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"power":0,"toughness":1,"duration":"endOfTurn"}` - `grantKeyword` — Iter93 Grant: “” → `{"effect":"grantKeyword","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"you"}},"keyword":"Shroud","duration":"permanent"}` - `createToken` — Restricted Rat Study: “” → `{"effect":"createToken","token":{"name":"Rat","types":["Creature"],"subtypes":["Rat"],"colors":["B"],"power":1,"toughness":1,"abilities":[{"kind":"static","effect":{"type":"cantBlock","to":{"of":"object","mode":"self"}}}]}}` - `createTokenCopy` — Event Probe copy: “” → `{"effect":"createTokenCopy","target":{"of":"object","mode":"chosen"},"amount":2}` - `addMana` — Mana Rock Study: “” → `{"effect":"addMana","mana":"{C}"}` - `manaDoesntEmpty` — Retain All Study: “” → `{"effect":"manaDoesntEmpty","duration":"endOfTurn"}` - `loseUnspentMana` — Power Sink: “Counter target spell unless its controller pays {X}. If that player doesn't, they tap all lands with mana abilities they control and lose all unspent mana.” → `{"effect":"loseUnspentMana","who":"current"}` - `searchLibrary` — Event Probe search: “” → `{"effect":"searchLibrary","who":"you","destination":"hand","max":1,"shuffle":false}` - `shuffle` — Shuffle Hand Witness: “” → `{"effect":"shuffle","who":"you"}` - `exchangeZones` — Harness Infinity: “Exchange your hand and graveyard.” → `{"effect":"exchangeZones","who":"you","zones":["hand","graveyard"]}` - `fight` — Prey Upon: “Target creature you control fights target creature you don't control.” → `{"effect":"fight","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"opponent"}},"what":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"you"}}}` - `counterSpell` — Counter Witness: “” → `{"effect":"counterSpell","target":{"of":"spellOrAbility","mode":"chosen"}}` - `counterUnlessPays` — Grip of Amnesia: “Counter target spell unless its controller exiles all cards from their graveyard.” → `{"effect":"counterUnlessPays","target":{"of":"spell","mode":"chosen","spell":{"controller":"any"}},"cost":{"exileGraveyard":true}}` - `gainControl` — Duration Warden: “” → `{"effect":"gainControl","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"duration":"whileYouControlSource"}` - `gainControlEachOthers` — Reins of Power: “Untap all creatures you control and all creatures target opponent controls. You and that opponent each gain control of all creatures the other controls until end of turn. Those creatures gain haste until end of turn.” → `{"effect":"gainControlEachOthers","target":{"of":"player","slot":"reinsOpponent","mode":"chosen","player":"eachOpponent"},"filter":{"types":["Creature"]},"duration":"endOfTurn"}` - `attach` — Grip of Phyresis: “Gain control of target Equipment, then create a 0/0 black Phyrexian Germ creature token and attach that Equipment to it.” → `{"effect":"attach","target":{"of":"object","mode":"created"},"what":{"of":"object","mode":"affected","filter":{"subtypes":["Equipment"]}}}` - `transform` — Shift Witness: “” → `{"effect":"transform","convert":true}` - `flip` — Flip Witness: “Flip target creature.” → `{"effect":"flip","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}}` - `regenerate` — Zombie Musher: “{S}: Regenerate this creature.” → `{"effect":"regenerate","target":{"of":"object","mode":"self"}}` - `preventDamage` — Embolden: “Prevent the next 4 damage that would be dealt this turn to any number of targets, divided as you choose.” → `{"effect":"preventDamage","target":{"of":"any","mode":"chosen","max":"any"},"amount":4,"divided":true}` - `cantPrevent` — Prevention Ban Study: “” → `{"effect":"cantPrevent","duration":"endOfTurn"}` - `digTop` — Iteration 35 random-selected: “” → `{"effect":"digTop","amount":4,"picks":[{"position":"top","take":2,"destination":"library","order":"random"}],"restTo":"graveyard"}` - `separatePiles` — Do or Die: “Separate all creatures target player controls into two piles. Destroy all creatures in the pile of that player's choice. They can't be regenerated.” → `{"effect":"separatePiles","target":{"of":"object","mode":"all","filter":{"types":["Creature"]},"player":"target","playerTarget":{"of":"player","mode":"chosen"}},"chooser":"target","chosen":[{"effect":"destroy","target":{"of":"object","mode":"affected"},"noRegenerate":true}]}` - `becomeCopy` — Duration Copy: “” → `{"effect":"becomeCopy","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"duration":{"whileTarget":{"tapped":true}}}` - `becomeType` — Dragon Form Witness: “” → `{"effect":"becomeType","target":{"of":"object","mode":"self"},"subtypes":["Dragon"],"replace":true,"duration":"endOfTurn"}` - `removeTypes` — Thermal Flux: “• Target nonsnow permanent becomes snow until end of turn.” → `{"effect":"removeTypes","target":{"of":"object","mode":"chosen","filter":{"supertypes":["Snow"]}},"supertypes":["Snow"],"duration":"endOfTurn"}` - `becomeColor` — Dwarven Song: “One or more target creatures become red until end of turn.” → `{"effect":"becomeColor","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]},"min":1,"max":"any"},"colors":["R"],"replace":true,"duration":"endOfTurn"}` - `loseAbilities` — Erase Abilities Study: “” → `{"effect":"loseAbilities","target":{"of":"object","mode":"all","filter":{"types":["Creature"]}},"duration":"endOfTurn"}` - `removeKeyword` — Permanent Flight Removal: “Target creature loses flying.” → `{"effect":"removeKeyword","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"keyword":"Flying","duration":"permanent"}` - `removeKeywordAbilities` — Landwalk Removal: “Target creature loses all landwalk abilities until end of turn.” → `{"effect":"removeKeywordAbilities","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"keyword":"landwalk","duration":"endOfTurn"}` - `grantAbility` — Quoted Unblockability Study: “” → `{"effect":"grantAbility","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"ability":{"kind":"static","effect":{"type":"grantKeyword","to":{"of":"object","mode":"self"},"keyword":"Can't be blocked"}},"duration":"perpetual"}` - `grantKeywordAbility` — Iter93 Grant: “” → `{"effect":"grantKeywordAbility","target":{"of":"object","mode":"affected"},"keywordAbility":{"keyword":"hexproofFrom","from":{"colors":["R"]}},"duration":"permanent"}` - `gainAbilitiesOf` — Grell Philosopher: “Aberrant Tinkering — When this creature enters and at the beginning of your upkeep, each Horror you control gains all activated abilities of target artifact an opponent controls until end of turn.” → `{"effect":"gainAbilitiesOf","target":{"of":"object","mode":"all","filter":{"subtypes":["Horror"],"controller":"you"}},"from":{"of":"object","mode":"chosen","filter":{"types":["Artifact"],"controller":"opponent"}},"kinds":["activated"],"spendAsAny":{"colors":["U"]},"duration":"endOfTurn"}` - `setPT` — Dragon Form Witness: “” → `{"effect":"setPT","target":{"of":"object","mode":"self"},"power":5,"toughness":5,"duration":"endOfTurn"}` - `exchangeBasePower` — High Fae Prankster: “• Perpetually exchange target creature's base power with another target creature's base power.” → `{"effect":"exchangeBasePower","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"second":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"other":true},"differentFromEarlierTargets":true},"duration":"perpetual"}` - `switchPT` — Inside Out: “Switch target creature's power and toughness until end of turn.” → `{"effect":"switchPT","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"duration":"endOfTurn"}` - `restrict` — Grant Conjunction Study: “” → `{"effect":"restrict","target":{"of":"object","mode":"affected"},"restriction":"cantBeBlocked","duration":"endOfTurn"}` - `cantCast` — Loyalty Silence Study: “” → `{"effect":"cantCast","who":"eachOpponent","duration":"endOfTurn"}` - `mustBlock` — Specific Block Study: “” → `{"effect":"mustBlock","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"attacker":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"duration":"endOfTurn"}` - `controlDeclarations` — Master Warcraft Control: “You choose which creatures block this turn and how those creatures block.” → `{"effect":"controlDeclarations","declarations":"attackers","who":"you","duration":"endOfTurn"}` - `playerRule` — Explore: “You may play an additional land this turn.” → `{"effect":"playerRule","who":"you","rule":"additionalLands","amount":1,"duration":"endOfTurn"}` - `nextSpellCantBeCountered` — Spell Assurance: “The next spell you cast this turn can't be countered.” → `{"effect":"nextSpellCantBeCountered"}` - `nextSpellHas` — Wand of the Worldsoul: “{T}: The next spell you cast this turn has convoke.” → `{"effect":"nextSpellHas","keywordAbility":{"keyword":"convoke"}}` - `costModifier` — Stalwart Realmwarden: “When Stalwart Realmwarden enters, the next noncreature spell target opponent casts costs {2} more to cast.” → `{"effect":"costModifier","who":"target","target":{"of":"player","mode":"chosen","player":"eachOpponent"},"filter":{"notTypes":["Creature"]},"amount":2,"next":true,"duration":"permanent"}` - `poisonCounters` — Toxic Dart: “Target player gets two poison counters.” → `{"effect":"poisonCounters","who":"target","target":{"of":"player","mode":"chosen"},"amount":2}` - `playerCounters` — Energy Foundry: “” → `{"effect":"playerCounters","counter":"energy","amount":1}` - `removePlayerCounters` — Final Act: “• Destroy all creatures.” → `{"effect":"removePlayerCounters","who":"eachOpponent"}` - `proliferate` — Iteration 71 proliferate: “” → `{"effect":"proliferate"}` - `populate` — Wake the Reflections: “Populate.” → `{"effect":"populate"}` - `createEmblem` — Opponent Honor: “Target opponent gets an emblem with "Creatures you control get +1/+1.".” → `{"effect":"createEmblem","who":"target","target":{"of":"player","mode":"chosen","player":"eachOpponent"},"abilities":[{"kind":"static","effect":{"type":"modifyPT","to":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"you"}},"power":1,"toughness":1}}]}` - `winGame` — Mechanized Production: “At the beginning of your upkeep, create a token that's a copy of enchanted artifact. Then if you control eight or more artifacts with the same name as one another, you win the game.” → `{"effect":"winGame","who":"you"}` - `loseGame` — Event Probe lose: “” → `{"effect":"loseGame","who":"you"}` - `castAsFlash` — Quicken: “” → `{"effect":"castAsFlash","filter":{"types":["Sorcery"]},"once":true}` - `playFromGraveyard` — Graveyard Rehearsal: “” → `{"effect":"playFromGraveyard","filter":{"anyTypes":["Instant","Sorcery"]}}` - `castFreeFromZone` — Iteration 53 Grave-Free: “” → `{"effect":"castFreeFromZone","zone":"graveyard","filter":{"anyTypes":["Instant","Sorcery"]},"duration":"endOfTurn"}` - `castFree` — Free Study: “” → `{"effect":"castFree","target":{"of":"object","mode":"affected"},"optional":true}` - `exileMayPlay` — Iteration 71 foreign permission: “” → `{"effect":"exileMayPlay","target":{"of":"object","mode":"chosen","zone":"graveyard","filter":{"owner":"opponent"}},"until":"endOfTurn"}` - `meld` — Graf Rats: “At the beginning of combat on your turn, if you both own and control Graf Rats and a creature named Midnight Scavengers, exile them, then meld them into Chittering Host.” → `{"effect":"meld"}` - `double` — Gilder Bairn: “” → `{"effect":"double","what":"counters","target":{"of":"object","mode":"chosen","filter":{}},"allCounters":true}` - `designate` — Biomancer's Familiar (fixture): “{T}: The next time target creature adapts this turn, it adapts as though it had no +1/+1 counters on it.” → `{"effect":"designate","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"designation":"adaptWithoutCounters","duration":"endOfTurn"}` - `adapt` — Adapt Effect (fixture): “{1}: Adapt 2.” → `{"effect":"adapt","amount":2}` - `goad` — Goad the Crowd: “Goad target creature.” → `{"effect":"goad","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}}` - `suspect` — Reasonable Doubt: “Suspect target creature.” → `{"effect":"suspect","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}}` - `detain` — Lyev Detainment: “Detain target creature an opponent controls.” → `{"effect":"detain","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"opponent"}}}` - `skipNextUntap` — Land Stasis Study: “” → `{"effect":"skipNextUntap","target":{"of":"object","mode":"all","filter":{"types":["Land"],"controller":"you"}},"during":"you"}` - `explore` — History Explorer: “” → `{"effect":"explore","target":{"of":"object","mode":"self"}}` - `connive` — Event Probe connive: “” → `{"effect":"connive","target":{"of":"object","mode":"chosen"}}` - `amass` — Dreadhorde Invasion: “At the beginning of your upkeep, you lose 1 life and amass Zombies 1.” → `{"effect":"amass","subtype":"Zombie","amount":1}` - `blight` — Blight Witness: “{0}: Target opponent blights 2.” → `{"effect":"blight","amount":2,"who":"target","target":{"of":"player","mode":"chosen","player":"eachOpponent"}}` - `collectEvidence` — Evidence Witness: “When this creature enters, you may collect evidence 4.” → `{"effect":"collectEvidence","amount":4,"optional":true}` - `earthbend` — Bumi, King of Three Trials: “When Bumi enters, choose up to X, where X is the number of Lesson cards in your graveyard —” → `{"effect":"earthbend","target":{"of":"object","mode":"chosen","filter":{"types":["Land"],"controller":"you"}},"amount":3}` - `airbend` — Airbend Quantity: “Airbend any number of other target nonland permanents you control.” → `{"effect":"airbend","target":{"of":"object","filter":{"notTypes":["Land"],"controller":"you","other":true},"max":"any"}}` - `moveCounters` — Rikku, Resourceful Guardian: “” → `{"effect":"moveCounters","anyKind":true,"from":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"opponent"}},"target":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"you"}},"amount":1}` - `discover` — Curator of Sun's Creation: “Whenever you discover, discover again for the same value. This ability triggers only once each turn.” → `{"effect":"discover","amount":{"kind":"triggerAmount"}}` - `manifestDread` — Growing Dread: “When this enchantment enters, manifest dread.” → `{"effect":"manifestDread","who":"you"}` - `flipCoin` — Iteration 71 flip: “” → `{"effect":"flipCoin"}` - `rollDie` — Event Probe dice: “” → `{"effect":"rollDie","sides":6,"then":[{"effect":"gainLife","who":"you","amount":{"kind":"dieResult","of":"total"}}],"amount":2,"results":[]}` - `vote` — Dilemma Witness: “Starting with you, each player votes for strength or pain. For each strength vote, you gain 3 life. For each pain vote, each opponent loses 1 life.” → `{"effect":"vote","options":[{"label":"strength","effects":[{"effect":"gainLife","amount":3}]},{"label":"pain","effects":[{"effect":"loseLife","who":"eachOpponent","amount":1}]}],"tally":"each"}` - `joinForces` — Minds Aglow: “Join forces — Starting with you, each player may pay any amount of mana. Each player draws X cards, where X is the total amount of mana paid this way.” → `{"effect":"joinForces","effects":[{"effect":"drawCards","who":"eachPlayer","amount":{"kind":"var","name":"X"}}]}` - `temptingOffer` — Tempt with Glory: “Tempting offer — Put a +1/+1 counter on each creature you control. Each opponent may put a +1/+1 counter on each creature they control. For each opponent who does, put a +1/+1 counter on each creature you control.” → `{"effect":"temptingOffer","effects":[{"effect":"addCounters","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"you"}},"counter":"+1/+1","amount":1}]}` - `fromOutsideGame` — Professor of Symbology: “When this creature enters, learn.” → `{"effect":"fromOutsideGame","filter":{"subtypes":["Lesson"]},"learn":true}` - `incubate` — Incubation Snapshot: “Incubate X twice, where X is the number of lands you control.” → `{"effect":"incubate","amount":{"kind":"noted","key":"__X"}}` - `venture` — Venture Witness: “” → `{"effect":"venture"}` - `choose` — Hydroblast: “• Counter target spell if it's red.” → `{"effect":"choose","kind":"object","target":{"of":"spell","mode":"chosen"}}` - `noteValue` — Token Snapshot: “” → `{"effect":"noteValue","key":"__X","value":{"kind":"math","op":"/","a":{"kind":"lifeTotal","who":"you"},"b":2,"round":"up"}}` - `repeat` — Iter29 Proliferation: “Proliferate twice.” → `{"effect":"repeat","amount":2,"effects":[{"effect":"proliferate"}]}` - `repeatProcess` — 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."” → `{"effect":"repeatProcess","optional":true}` - `forEachObject` — Rakdos Charm: “• Exile target player's graveyard.” → `{"effect":"forEachObject","target":{"of":"object","mode":"all","filter":{"types":["Creature"]}},"effects":[{"effect":"dealDamage","target":{"of":"player","mode":"all","player":"affectedController"},"amount":1,"from":{"of":"object","mode":"affected"}}]}` - `forEachPlayer` — Windgrace's Judgment: “For any number of opponents, destroy target nonland permanent that player controls.” → `{"effect":"forEachPlayer","players":"eachOpponent","effects":[{"effect":"choose","kind":"object","target":{"of":"object","mode":"chosen","filter":{"notTypes":["Land"],"controller":"current"},"min":0,"max":1}}]}` - `extraTurn` — Event Probe extra-turn: “” → `{"effect":"extraTurn","who":"you"}` - `additionalCombat` — Combat Celebrant: “If this creature hasn't been exerted this turn, you may exert it as it attacks. When you do, untap all other creatures you control and after this phase, there is an additional combat phase.” → `{"effect":"additionalCombat"}` - `additionalPhase` — Sphinx of the Second Sun: “At the beginning of each of your postcombat main phases, there is an additional beginning phase after this phase.” → `{"effect":"additionalPhase","phase":"beginning"}` - `skipStep` — Skip Witness: “” → `{"effect":"skipStep","who":"you","step":"turn"}` - `becomeMonarch` — Crown Grab: “You become the monarch.” → `{"effect":"becomeMonarch","who":"you"}` - `temptRing` — Ring Witness: “The Ring tempts you.” → `{"effect":"temptRing"}` - `takeInitiative` — Undercity Explorer: “When this creature enters, you take the initiative.” → `{"effect":"takeInitiative","who":"you"}` - `phaseOut` — Conditional Dismissal: “” → `{"effect":"phaseOut","target":{"of":"object","mode":"all","filter":{"types":["Creature"]},"player":"target","playerTarget":{"of":"player","mode":"chosen"}}}` - `exchangeControl` — Shifting Borders: “Exchange control of two target lands.” → `{"effect":"exchangeControl","target":{"of":"object","mode":"chosen","filter":{"types":["Land"]},"min":2,"max":2}}` - `conjure` — Alchemy choice Fixture: “” → `{"effect":"conjure","choices":["Grizzly Bears","Savannah Lions"],"destination":"hand"}` - `seek` — Seeker of Lands: “Seek a land card.” → `{"effect":"seek","who":"you","filter":{"types":["Land"]}}` - `draft` — Alchemy Draft Fixture: “Draft a card from Alchemy Draft Fixture's spellbook.” → `{"effect":"draft"}` - `perpetualManaCost` — Alchemy Rewrite Fixture: “Target creature card in your hand's mana cost perpetually becomes {4}{G}. Its mana cost perpetually is reduced by {1}.” → `{"effect":"perpetualManaCost","target":{"of":"object","mode":"choose","zone":"hand","filter":{"types":["Creature"],"owner":"you"}},"manaCost":"{4}{G}"}` - `intensify` — Hymn to the Ages: “Draw a number of cards equal to this spell's intensity.” → `{"effect":"intensify","amount":1,"allOwned":true,"filter":{"subtypes":["Chorus"]}}` - `unspecialize` — Lukamina, Hawk Form: “When Lukamina, Hawk Form dies, it unspecializes. If it unspecializes this way, return it to the battlefield tapped.” → `{"effect":"unspecialize","returnTapped":true}` - `oneTimeBoon` — Illuminating Lash: “You get a one-time boon with "When you cast a noncreature spell, draw a card."” → `{"effect":"oneTimeBoon","trigger":{"event":"castSpell","by":"you","filter":{"notTypes":["Creature"]}},"effects":[{"effect":"drawCards","who":"you","amount":1}]}` - `spellEntersWith` — Grand Summon Totem: “{T}: Add one mana of any color. When you next cast a creature spell this turn, that creature enters with two additional +1/+1 counters on it.” → `{"effect":"spellEntersWith","target":{"of":"object","mode":"triggering"},"counters":[{"counter":"+1/+1","amount":2}],"additional":true}` - `heist` — Alchemy Heist Fixture: “Heist target opponent's library.” → `{"effect":"heist","target":{"of":"player","mode":"chosen","player":"eachOpponent"}}` - `openAttraction` — Ticket Taker: “When this creature enters, open an Attraction.” → `{"effect":"openAttraction","who":"you"}` - `claimPrize` — Pick-a-Beeble: “Visit — Roll a six-sided die. Put a number of luck counters on Pick-a-Beeble equal to the result and create a Treasure token. Then if there are six or more luck counters on Pick-a-Beeble, claim the prize!” → `{"effect":"claimPrize"}` - `assembleContraption` — Steamflogger Temp: “{6}, {T}: This creature assembles a Contraption.” → `{"effect":"assembleContraption","who":"you"}` - `putSticker` — Costume Shop: “Visit — You may put a sticker on a nonland permanent you own.” → `{"effect":"putSticker","who":"you"}` - `empower` — Theorist's Proxy: “When this creature enters, empower Jace 3.” → `{"effect":"empower","who":"you","tokenName":"Jace","token":{"name":"Jace","supertypes":["Legendary"],"types":["Planeswalker"],"subtypes":["Jace"],"colors":["U"],"abilities":[{"kind":"loyalty","loyaltyCost":-1,"effects":[{"effect":"surveil","who":"you","amount":1}]},{"kind":"loyalty","loyaltyCost":-3,"effects":[{"effect":"drawCards","who":"you","amount":1}]}]},"amount":3}` - `recruit` — The Mountain-king's Return: “I — Recruit.” → `{"effect":"recruit","who":"you"}` - `assimilate` — Assimilation Assessor: “Whenever this creature attacks, assimilate a creature card exiled with it.” → `{"effect":"assimilate","target":{"of":"object","mode":"choose","zone":"exile","filter":{"types":["Creature"],"linkedToSource":true},"label":"Assimilate a creature card exiled with this creature"}}` - `fateseal` — Mesmeric Sliver: “When this creature enters, you may fateseal 1.” → `{"effect":"fateseal","amount":1}` - `manifest` — Scroll of Fate: “{T}: Manifest a card from your hand.” → `{"effect":"manifest","who":"you","amount":1,"fromZone":"hand"}` - `turnFaceUp` — Break Open: “Turn target face-down creature an opponent controls face up.” → `{"effect":"turnFaceUp","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"opponent","faceDown":true}}}` - `turnFaceDown` — Wall of Deceit: “{3}: Turn this creature face down.” → `{"effect":"turnFaceDown"}` - `investigate` — Iter141 Briarbridge: “Whenever this creature deals damage to one or more creatures, investigate.” → `{"effect":"investigate","who":"you"}` - `exileUntilSourceLeaves` — Banish to Another Universe: “When this enchantment enters, exile target nonland permanent an opponent controls until this enchantment leaves the battlefield.” → `{"effect":"exileUntilSourceLeaves","target":{"of":"object","mode":"chosen","filter":{"notTypes":["Land"],"controller":"opponent"}}}` - `flicker` — Cloudshift: “Exile target creature you control, then return that card to the battlefield under your control.” → `{"effect":"flicker","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"],"controller":"you"}}}` - `retarget` — Retarget Witness: “” → `{"effect":"retarget","target":{"of":"spellOrAbility","mode":"chosen"},"to":{"of":"object","mode":"self"},"single":true}` - `copyAbility` — Ability Copy Witness: “” → `{"effect":"copyAbility","target":{"of":"ability","mode":"chosen"}}` - `copySpell` — Iteration 71 copy: “” → `{"effect":"copySpell","target":{"of":"spell","mode":"chosen"},"newTargets":true}` - `copyCard` — Iter38 Names: “{T}: Choose a card name that hasn't been chosen from among Grizzly Bears, Savannah Lions, and Lightning Bolt. Create a copy of the card with the chosen name. You may cast the copy.” → `{"effect":"copyCard","chosenName":true,"payManaCost":true,"optional":true}` - `reflexiveTrigger` — Paid Values: “You may pay {X}. When you do, Paid Values deals X damage to target creature.” → `{"effect":"reflexiveTrigger","effects":[{"effect":"dealDamage","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"amount":{"kind":"var","name":"X"}}]}` - `delayedTrigger` — Shift Witness: “” → `{"effect":"delayedTrigger","trigger":{"event":"endStep","by":"any"},"effects":[{"effect":"transform","convert":true}]}` - `replacement` — Combat Prevention Study: “” → `{"effect":"replacement","replacement":{"replaces":"event","event":"damage","to":{"of":"object","mode":"all"},"toPlayer":"eachPlayer","damageKind":"combat","prevent":true},"duration":"endOfTurn"}` - `reveal` — Random Reveal Witness: “” → `{"effect":"reveal","target":{"of":"object","mode":"random","zone":"hand","filter":{"owner":"you"}}}` - `if` — Exploration Insight: “” → `{"effect":"if","condition":{"kind":"compare","a":{"kind":"thisTurn","event":"permanentsExplored","who":"you"},"op":">=","b":1},"then":[{"effect":"drawCards","amount":2}],"else":[{"effect":"drawCards","amount":1}]}` - `ifDone` — Test of Completion: “Discard a card. If you do, draw two cards.” → `{"effect":"ifDone","action":{"effect":"discard","amount":1},"then":[{"effect":"drawCards","who":"you","amount":2}]}` - `villainousChoice` — Villainous Study: “Each opponent faces a villainous choice — That player sacrifices a creature of their choice or you draw a card.” → `{"effect":"villainousChoice","who":"eachOpponent","options":[[{"effect":"sacrifice","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"who":"current"}],[{"effect":"drawCards","who":"you","amount":1}]]}` - `optional` — Rune Crown Witness: “” → `{"effect":"optional","then":[{"effect":"searchLibrary","who":"you","filter":{"subtypes":["Rune"]},"zones":["library","hand","graveyard"],"optionalZones":true,"then":[{"effect":"moveTo","target":{"of":"object","mode":"affected"},"destination":"battlefield","attachedTo":{"of":"object","mode":"self"}}],"min":1,"max":1,"shuffle":true}]}` - `mayPay` — Energy Foundry: “” → `{"effect":"mayPay","cost":{"payCounters":{"counter":"energy","amount":{"kind":"var","name":"X"}}},"then":[{"effect":"createToken","token":{"name":"Aetherborn","types":["Creature"],"subtypes":["Aetherborn"],"colors":["B"],"power":{"kind":"var","name":"X"},"toughness":{"kind":"var","name":"X"}}}],"chooseX":{"min":1,"max":{"kind":"playerCounters","counter":"energy","who":"you"}}}` - `unlessPays` — Skullscorch: “Target player discards two cards at random unless that player has Skullscorch deal 4 damage to them.” → `{"effect":"unlessPays","who":"target","target":{"of":"player","mode":"chosen"},"cost":{"damageFromSource":4},"then":[{"effect":"discard","who":"you","amount":2,"random":true}]}`