# Drawstep engine wiki — Values > Numbers: constants, X, counts and derived quantities such as devotion, domain or turn history. Engine: Magic: The Gathering (`mtg`). Page: https://drawstep.xyz/wiki/mtg/values · Raw Markdown: https://drawstep.xyz/wiki/mtg/values.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. ## Values (`ValueDef`, discriminator `kind`; a plain integer is also a ValueDef) Numbers: constants, X, counts and derived quantities. - `var` — e.g. “Token”. Fields: `name`: string — Announced variable; lifeLostThisWay, damageDealtThisWay and countersRemovedThisWay read the actual total of the preceding corresponding instruction after replacements/prevention, including redirected damage (CR 119.3, 120.4, 122.2, 608.2h); targetSpellManaValue is the mana value of the target spell of the preceding counterSpell / counterUnlessPays as it last existed on the stack, X included, also when it couldn't be countered (kept by a later delayed trigger: "that spell's mana value", CR 202.3e, 608.2h). - `count` — e.g. “the number of permanents on the battlefield”. Fields: `digSubset?`: "looked" | "picked" | "rest" — Use the last dig's fixed subset and action-time characteristics; zone restricts actual disposition, excluding replaced moves (CR 608.2h, 609.3, 400.7); `of?`: "object" | "player" — Count objects (default) or players; `zone?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — Zone counted (default battlefield); `filter?`: ObjectFilter — Which objects are counted; `player?`: "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 zone is counted (on the battlefield: controller; elsewhere: owner). - `doneThisWay` — Number of successful earlier actions; filter uses action-time characteristics, including tokens (CR 609.3, 608.2h). Fields: `of`: "sacrificed" | "milled" | "destroyed" | "exiled" | "discarded" | "returned" | "putIntoLibrary" | "tapped" | "untapped" | "damaged" | "drawn" | "revealed" | "countersPlaced" | "countersRemoved" | "amassed" | "countered" | "phasedOut" | "searched" | "created" — Which action of this resolution is counted (see `thisWay` actions); `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `distinctOwners?`: boolean — CR 400.3, 121.1, 608.2h: count each owner of the action-time cards once. For drawn cards this counts the players who actually drew, even if replacement effects changed the number drawn; for searched, the players who searched; `by?`: "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 109.5, 608.2h: only actions these players performed — the searcher (searched), the card's owner (discarded / drawn / milled), the controller as it was sacrificed (sacrificed). In a player selector's where, you is each candidate: "each player who discarded a card this way", "each opponent who searched a library this way". - `playerAggregate` — CR 107.1, 608.2h: greatest/least value among players (default eachPlayer). Bind current separately for each player without rebinding you; empty set yields zero. Fields: `op`: "max" | "min" — Comparison or arithmetic operator; `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" | object — Which players are compared (default each player); the value is evaluated as each of them in turn; `value`: ValueDef — The value to store or compare. - `triggerAmount` — CR 603.2, 608.2h: recorded amount of the event that caused the trigger; damage is the amount actually dealt after prevention. No fields. - `triggeringCount` — CR 603.2c: number of distinct objects in the triggering event (oneOrMore, or youAttack), fixed when it happened; separate from triggerAmount's damage total. No fields. - `affectedCount` — CR 608.2h: number of objects in the preceding selection of this resolution ("for each creature chosen this way"). Fields: `noun?`: string — Which kind of object the cost paid with is read. - `devoured` — CR 702.82a: number of creatures this permanent devoured as it entered (devour); "for each creature it devoured". No fields. - `counterKinds` — CR 122.1: number of different kinds of counter on the permanents matching filter (default: permanents you control); "for each kind of counter among permanents you control". Fields: `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together). - `countersAmong` — CR 122.1: the number of counters on the permanents matching filter (default: permanents you control) — of one kind when counter is given, else of every kind; "if there are thirty or more counters among artifacts and creatures you control". Fields: `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `counter?`: string — Counter kind (any string: "+1/+1", "loyalty", "time", "oil" …). - `costPaid` — CR 601.2h, 602.2b, 608.2h: the single object sacrificed, discarded, revealed or exiled (`cost`) to pay this spell or ability; its characteristics are fixed at payment, before it changes zones. `reveal` is the card a reveal cost showed; `exile` is the one card exiled by an exileOthers cost. Fields: `cost`: "sacrifice" | "discard" | "reveal" | "exile" — Which cost paid is read: sacrifice, discard, reveal or exile; `property`: "power" | "toughness" | "manaValue" — Which characteristic of what was paid: power, toughness or mana value; `noun?`: "creature" | "artifact" | "enchantment" | "permanent" | "card" — Which kind of object the cost paid with is read. - `blockers` — CR 509.1g-h: count creatures currently blocking the source (default) or triggering creature; departed blockers do not count. Fields: `of?`: "source" | "triggering" — Blockers of the source or of the triggering creature. - `sourcePower` — e.g. “~'s power”. No fields. - `sourceToughness` — e.g. “~'s toughness”. No fields. - `intensity` — The source card's persistent intensity, initialized by startingIntensity; not a counter. No fields. - `affected` — CR 608.2h: a property of the object evaluated by a static, or the preceding single object selection during resolution; a departed battlefield object uses last-known characteristics ("its mana value", "equal to its toughness"). Fields: `property`: "power" | "toughness" | "manaValue" | "counters" | "colors" — colors: CR 105.2 number of colors, last known after it left the battlefield; `counter?`: string — CR 122.1: counter kind; omitted or any totals all counters on the affected object. - `sacrificed` — CR 601.2h, 602.2b, 608.2h: last-known power, toughness, or mana value of the single object sacrificed as this spell or ability's cost; retained by copies (CR 707.10). Fields: `property`: "power" | "toughness" | "manaValue" — Which characteristic of the sacrificed object: power, toughness or mana value; `object?`: "artifact" | "enchantment" | "permanent" — Printed noun of the sacrifice cost; defaults to creature (CR 108.1). - `countersOnSource` — e.g. “the number of counters on ~”. Fields: `counter?`: string — CR 122.1, 608.2h: a counter kind; omitted or any totals every kind of counter on the source, using last known information after it leaves. - `activationsThisTurn` — CR 602.2, 608.2h: how many times the resolving activated ability has been activated this turn, counting this activation ("if this ability has been activated four or more times this turn"). No fields. - `excessDamageThisWay` — CR 120.4a: the total damage beyond lethal dealt by this resolution so far ("the amount of excess damage dealt this way"; "if excess damage was dealt this way" compares it with 0). No fields. - `damageDealt` — CR 120.1, 608.2h: damage actually dealt this turn after prevention and replacement, narrowed by recipient, source, kind and combat; "if it was dealt damage this turn" compares it with 0. Fields: `to?`: "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 | TargetDef — Recipients: a player selector ("an opponent was dealt damage" is eachOpponent), or an object selection compared by identity — { mode: "self" } for "this creature", { mode: "affected" } / { mode: "triggering" } for "it" (the same incarnation, CR 400.7); `from?`: ObjectFilter — Match source characteristics when the damage was dealt. For red sources you controlled, use { colors: ["R"], controller: "you" }; `damageKind?`: "combat" | "noncombat" — Only combat / noncombat damage; `excess?`: boolean — CR 120.4a: sum the damage beyond lethal instead of the damage dealt; `combat?`: boolean — CR 506.1: only this combat phase (0 outside combat); `lastTurn?`: boolean — Read last turn instead of this turn; `thisGame?`: boolean — CR 120.1: damage dealt to players at any time this game, not only this turn ("each opponent dealt combat damage this game by a creature named Gollum, Obsessed Stalker": to you, from { name, types: ["Creature"] }, combat). Damage to permanents is only kept for the turn. - `lifeTotal` — CR 119.1: a selected player life total, or the lowest/highest among players or opponents. 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`); `of?`: "lowest" | "highest" — With `among`: the lowest or highest life total; `among?`: "players" | "opponents" — Among which players the value is read. - `chosenNumber` — Numeric choice in this resolution, falling back to the source choice (CR 608.2d). Fields: `key?`: string — Named numeric choice; defaults to number (CR 608.2d); `of?`: "you" | "highest" | "lowest" — A number every player chose (choose with collect): `you` = the one the player "you" stands for chose (each candidate of a player selector's most / fewest / where); `highest` / `lowest` = the greatest / least of them all. - `votes` — CR 701.38: votes cast in the latest vote of this resolution, for an option or received by a player. Fields: `option?`: string — The option label: "the number of truth votes"; `player?`: "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 — Votes the selected player(s) received when players voted for a player: "for each vote you received". - `ringTemptations` — CR 701.64 (formerly 701.52): times the Ring has tempted this 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 — Which player(s) — a player selector (default `you`). - `playerCounters` — Counters a player has: "energy" ({E}), "experience", "rad", …. Fields: `counter`: string — Counter kind (any string: "+1/+1", "loyalty", "time", "oil" …); `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`). - `unspentMana` — CR 106.4: unspent mana in the players' mana pools ("Omnath gets +1/+1 for each unspent mana you have"). 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`); `color?`: "W" | "U" | "B" | "R" | "G" | "C" — Only mana of this color ("unspent green mana"). - `stormCount` — Spells cast this turn before the source spell (storm). No fields. - `spellsCastLastTurn` — Spells cast during the previous turn — total, or the most by any single player. Fields: `by?`: "total" | "mostByOnePlayer" — Count all spells cast last turn (`total`) or the most cast by one player. - `turnsTaken` — CR 500.1, 102.1: turns these players have taken this game, counting a current turn of theirs ("unless it's your first, second, or third turn of the game" with isYourTurn, Starting Town). Extra turns count as taken. 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`). - `classLevel` — Current level of this Class enchantment. No fields. - `thisTurn` — Turn history: how many times something happened this turn (or last turn), optionally only to objects matching a look-back filter, by a player, or during this combat. Fields: `filter?`: ObjectFilter — CR 400.7, 608.2h look-back: count only events whose object matched this filter as the event happened (its characteristics, controller and counters then; tokens included). Allowed on every object event: entered, left, died, destroyed, sacrificed, cast, countered, drawn, discarded, exiled, returned to hand, left a graveyard, attacked, counters placed / removed; `counter?`: string — countersPlaced / countersRemoved: only counters of this kind; `combat?`: boolean — CR 506.1, 500.8: only events during the current combat phase count ("this combat"); 0 outside combat; `event`: "creaturesDied" | "permanentsLeft" | "permanentCardsToGraveyard" | "cardsToGraveyard" | "spellsCast" | "instantsSorceriesCast" | "noncreatureSpellsCast" | "creatureSpellsCast" | "cardsDrawn" | "lifeGained" | "lifeLost" | "landsPlayed" | "creaturesAttacked" | "damageDealtToOpponents" | "creaturesEntered" | "artifactsEntered" | "permanentsEntered" | "nonlandPermanentsEntered" | "permanentsToGraveyard" | "spellsWarped" | "cardsDiscarded" | "permanentsSacrificed" | "crimesCommitted" | "diceRolled" | "attractionsVisited" | "attractionsOpened" | "contraptionsAssembled" | "stickersPlaced" | "opponentsAttacked" | "permanentsExplored" | "cardsLeftGraveyard" | "cardsExiled" | "permanentsToHand" | "librariesSearched" | "scried" | "surveilled" | "cardsCycled" | "spellsCountered" | "permanentsDestroyed" | "countersPlaced" | "countersRemoved" | "tokensCreated" — The turn-history event counted. scried / surveilled: CR 701.22a / 701.25a actions by `who` (scry 0 is none); cardsCycled: CR 702.29a cards `who` cycled; `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`); `lastTurn?`: boolean — Read last turn instead of this turn; `sinceYourLastTurn?`: boolean — CR 500.1, 608.2h: every event since the end of the ability controller's most recent turn, across the turns in between and this one so far ("if no opponent cast a spell since your last turn ended"); since the game began before their first turn; `beforeTriggering?`: boolean — CR 603.2, 608.2h: "… you've cast before it this turn" (Thousand-Year Storm) — only the casts before the triggering spell, excluding it, fixed as it was cast (spells cast in response don't count). spellsCast / instantsSorceriesCast / creatureSpellsCast. - `cardTypesIn` — Number of distinct card types among cards in a zone (delirium). Fields: `zone`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — A zone name (battlefield, hand, graveyard, library, exile, stack, command); `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`). - `partySize` — CR 700.8: largest party of distinct controlled creatures, one each of Cleric, Rogue, Warrior and Wizard (0 to 4). 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`). - `domain` — Basic land types among lands you control. 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`). - `unlockedDoors` — Unlocked doors among Rooms the player controls (CR 709.5). 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`). - `devotion` — Devotion to the colors: mana symbols of those colors among permanents you control (chroma: among cards in `zone`). Fields: `colors`: string[] — Colour letters; "chosen" is the colour chosen earlier in this resolution (Nykthos: choose a color, then your devotion to that color); `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`); `zone?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — A zone name (battlefield, hand, graveyard, library, exile, stack, command); `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together). - `commanderIdentityColors` — CR 903.4: the number of colors in the player's commanders' color identity (War Room); 0 outside a Commander 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`). - `manaSpent` — Mana spent to cast the source spell: total, number of colors (converge), or of one color (adamant); `from` restricts to mana from matching producers (CR 106.3). Fields: `of?`: "total" | "colors" | "color" — Total mana spent, the number of colors spent, or the amount of one `color`; `color?`: string — A color (W / U / B / R / G); `from?`: { types?: string[]; subtypes?: string[]; supertypes?: string[] } — CR 106.3: count only mana produced by a source with all the given types/subtypes/supertypes, as it existed when it produced the mana ("for each mana from a Treasure spent to cast it", Marut); `thisTurn?`: boolean — Total mana spent by the controller to cast spells this turn. - `timesPaid` — How many times an optional additional cost was paid (CR 118.8, 707.10). Cost additional is the generic optionalAdditionalCost; copies retain the payment count. Cost resolution reads the enclosing repeatable mayPay payment count (CR 118.12, 603.12). Fields: `cost?`: "kicker" | "replicate" | "squad" | "strive" | "casualty" | "teamwork" | "waterbend" | "stickerKicker" | "additional" | "resolution" — Which optional or additional cost is counted (kicker, replicate, squad, …). - `aggregate` — CR 107.1, 608.2h: greatest / least / total power, toughness, mana value or counters among filtered objects in zone (default battlefield), scoped by who. Empty sets give zero. Fields: `sets?`: ({ zone?: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command"; filter?: ObjectFilter; who?: any })[] — CR 400.1, 608.2h: union independently filtered/scoped object sets across zones, counting each object once; an empty union gives zero; `target?`: TargetDef — Read the property from a selection instead of a filtered zone: a declared target slot ("Choose target creature. … that creature's power" — the same `slot` as the declaring effect), `affected`, `triggering`, `triggeringOther`, `host`, `self`, `thisWay`. No prompt is ever made: an undeclared target or a resolution-time choice reads as empty (zero); `digSubset?`: "looked" | "picked" | "rest" — Use the last dig's fixed subset and action-time characteristics; zone restricts actual disposition, excluding replaced moves (CR 608.2h, 609.3, 400.7); `op`: "max" | "min" | "sum" — Aggregate over the matching objects: max, min or sum; `property`: "power" | "toughness" | "manaValue" | "counters" — counters (CR 122.1): the number of `counter` counters on each object ("for each +1/+1 counter among other creatures you control" = op sum); `counter?`: string — property counters: the counter kind; omitted or "any" totals every kind; `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `zone?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — A zone name (battlefield, hand, graveyard, library, exile, stack, command); `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`). - `triggering` — A property of the object that caused the trigger (manaSpent: mana spent to cast the triggering spell; counters: the counters on it, as it last existed on the battlefield once it has left — "the number of counters it had on it", CR 603.10a, 608.2h). Fields: `property`: "power" | "toughness" | "manaValue" | "manaSpent" | "colors" | "counters" | "targets" — targets (CR 115.1, 601.2c): the number of targets the triggering spell had as it was cast, each instance of the word target counting; `counter?`: string — property counters: only this kind ("+1/+1"); omitted or "any" totals every kind (CR 122.1). - `startingLife` — CR 103.3: actual starting life total. 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`). - `poison` — e.g. “the number of poison counters you have”. 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`). - `speed` — A player's speed (0 when they have 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`). - `timesMutated` — CR 702.140: number of times the source permanent has mutated (merged creature spells); a new object starts at zero (CR 400.7). No fields. - `commanderTax` — CR 903.8: highest commander tax ({2} per previous command-zone cast) among the player's commanders. 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`). - `commanderCasts` — CR 903.8: times the player cast their commander from the command zone this 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`); `of?`: "triggering" — CR 903.8: only the triggering commander, including this cast. - `noted` — A value noted earlier by noteValue. Fields: `key?`: string — Storage key of a noted value or choice (defaults to the choice's kind). - `maxSameName` — CR 201.2a, 608.2h: largest number of matching battlefield permanents sharing a name. Face-down and nameless permanents contribute nothing. Fields: `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `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`). - `distinct` — Number of different values of a property among matching objects (coven); cardType counts card types (CR 205.2a). Fields: `property`: "power" | "toughness" | "manaValue" | "name" | "color" | "creatureType" | "cardType" — Which characteristic's distinct values are counted; `filter?`: ObjectFilter — Which objects (ObjectFilter; set fields AND together); `zone?`: "battlefield" | "hand" | "graveyard" | "library" | "exile" | "stack" | "command" — A zone name (battlefield, hand, graveyard, library, exile, stack, command); `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 — Read the objects of a selection instead of a zone: thisWay (as the action found them — "card type among cards discarded this way"), triggering (a oneOrMore group, as each last existed — "among those cards"), a target slot. Never prompts. - `dieResult` — Result of the most recent die roll; with several dice: their total, the highest, the lowest, the number of different results, or the chosen / other result of rollDie.chooseResult. Fields: `of?`: "total" | "highest" | "lowest" | "distinct" | "chosen" | "other" — Which result: total, highest, lowest, distinct, the chosen result or the other one. - `handSize` — e.g. “the number of cards in 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`). - `sharedCreatureTypeMax` — The greatest number of creatures a player controls that have a creature type in common (CR 205.3m, 107.1); zero with 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`). - `targetsChosen` — Number of targets chosen for this spell/ability. No fields. - `replaced` — Inside a replacement effect: the amount of the replaced event ("that much damage", "that many counters") or the damage it prevented ("the damage prevented this way"). Fields: `property`: "amount" | "prevented" — The replaced event's amount, or the amount prevented. - `math` — CR 107.1-107.3, 608.2h: recursive arithmetic: add (+), subtract (-), multiply (*) including twice X, divide (/) with round up/down (default down; zero divisor gives zero), or min/max of two values. Negative results remain negative for P/T; effects clamp amounts where the rules require. A printed minus sign (-X/-X) is multiplication by -1. Fields: `op`: "+" | "-" | "*" | "/" | "min" | "max" — Arithmetic: + − * / min max; `a`: ValueDef — The first operand; `b`: ValueDef — The second operand; `round?`: "up" | "down" — Rounding of a division: up or down. - `native` — A number computed 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 value stands for. - `asCast` — CR 601.2i, 608.2h: the inner value as it stood when this spell became cast ("where X is the number of creatures on the battlefield as you cast this spell"); recorded as casting completes, 0 for an object that wasn't cast; a copy inherits it (CR 707.10). Fields: `value`: ValueDef — The value to store or compare. ### Stock examples - `var` — Hydra Broodmaster: “{X}{X}{G}: Monstrosity X.” → `{"kind":"var","name":"X"}` - `count` — Humming-: “Whenever you attack with two or more creatures,” → `{"kind":"count","filter":{"controller":"you","attacking":true}}` - `doneThisWay` — Least Discard Study: “” → `{"kind":"doneThisWay","of":"discarded","filter":{"owner":"current"}}` - `playerAggregate` — Least Discard Study: “” → `{"kind":"playerAggregate","op":"min","value":{"kind":"doneThisWay","of":"discarded","filter":{"owner":"current"}}}` - `triggerAmount` — Iteration 71 coin-win: “” → `{"kind":"triggerAmount"}` - `affectedCount` — Dream Tides: “At the beginning of each player's upkeep, that player may choose any number of tapped nongreen creatures they control and pay {2} for each creature chosen this way. If the player does, untap those creatures.” → `{"kind":"affectedCount","noun":"creature"}` - `devoured` — Skullmulcher: “When this creature enters, draw a card for each creature it devoured.” → `{"kind":"devoured"}` - `counterKinds` — Storm of Forms: “Return target nonland permanent to its owner's hand.” → `{"kind":"counterKinds"}` - `countersAmong` — Lux Artillery: “At the beginning of your end step, if there are thirty or more counters among artifacts and creatures you control, this artifact deals 10 damage to each opponent.” → `{"kind":"countersAmong","filter":{"anyTypes":["Artifact","Creature"],"controller":"you"}}` - `costPaid` — Volrath the Fallen: “” → `{"kind":"costPaid","cost":"discard","property":"manaValue","noun":"card"}` - `blockers` — Gang of Elk: “Whenever this creature becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.” → `{"kind":"blockers"}` - `sourcePower` — Firebending Student: “Firebending X, where X is this creature's power.” → `{"kind":"sourcePower"}` - `sourceToughness` — Role-Young-Hero Study: “Create a young hero Role token attached to target creature.” → `{"kind":"sourceToughness"}` - `intensity` — Hymn to the Ages: “Draw a number of cards equal to this spell's intensity.” → `{"kind":"intensity"}` - `affected` — Host Counter Witness: “Equipped creature gets +1/+1 for each counter on it.” → `{"kind":"affected","property":"counters","counter":"any"}` - `sacrificed` — Bosh, Iron Golem: “” → `{"kind":"sacrificed","property":"manaValue","object":"artifact"}` - `countersOnSource` — All Counter Witness: “” → `{"kind":"countersOnSource","counter":"charge"}` - `damageDealt` — Antagonism: “At the beginning of each player's end step, this enchantment deals 2 damage to that player unless one of their opponents was dealt damage this turn.” → `{"kind":"damageDealt","to":{"kind":"eachPlayer","where":{"kind":"playerIs","who":"triggeringPlayer","is":"opponent"}}}` - `lifeTotal` — Token Snapshot: “” → `{"kind":"lifeTotal","who":"you"}` - `chosenNumber` — Iter38 Positive: “Choose a number greater than 0. You gain life equal to the chosen number.” → `{"kind":"chosenNumber"}` - `votes` — Mob Verdict: “Each player secretly votes for another player, then those votes are revealed. For each vote an opponent received, Mob Verdict deals 2 damage to that player and each creature that player controls. For each vote you received, draw a card.” → `{"kind":"votes","player":"current"}` - `playerCounters` — Energy Foundry: “” → `{"kind":"playerCounters","counter":"energy","who":"you"}` - `unspentMana` — Omnath, Locus of Mana: “Omnath gets +1/+1 for each unspent green mana you have.” → `{"kind":"unspentMana","who":"you","color":"G"}` - `spellsCastLastTurn` — Geier Reach Bandit: “At the beginning of each upkeep, if no spells were cast last turn, transform this creature.” → `{"kind":"spellsCastLastTurn"}` - `turnsTaken` — Captivating Crossroads: “During your first three turns of the game, Captivating Crossroads enters tapped if you were the starting player.” → `{"kind":"turnsTaken","who":"you"}` - `thisTurn` — Two Spells Study: “” → `{"kind":"thisTurn","event":"spellsCast","who":"you"}` - `cardTypesIn` — Types Values: “You gain life equal to the number of card types among cards in your graveyard.” → `{"kind":"cardTypesIn","zone":"graveyard","who":"you"}` - `partySize` — Strength of Solidarity: “Choose target creature you control. Put a +1/+1 counter on it for each creature in your party.” → `{"kind":"partySize","who":"you"}` - `domain` — Stratadon: “Domain — This spell costs {1} less to cast for each basic land type among lands you control.” → `{"kind":"domain"}` - `devotion` — Gray Merchant of Asphodel: “When this creature enters, each opponent loses X life, where X is your devotion to black. You gain life equal to the life lost this way.” → `{"kind":"devotion","colors":["B"],"who":"you"}` - `manaSpent` — Adamant Test: “You gain 1 life. If at least three red mana was spent to cast this spell, you gain 4 life instead.” → `{"kind":"manaSpent","of":"color","color":"R"}` - `timesPaid` — Paid Entry: “” → `{"kind":"timesPaid","cost":"additional"}` - `aggregate` — Iteration 35 reveal-value: “” → `{"kind":"aggregate","digSubset":"looked","op":"sum","property":"manaValue"}` - `triggering` — Voracious Bibliophile: “Whenever you cast a spell with one or more targets, draw that many cards.” → `{"kind":"triggering","property":"targets"}` - `startingLife` — Exquisite Archangel: “If you would lose the game, instead exile this creature and your life total becomes equal to your starting life total.” → `{"kind":"startingLife","who":"you"}` - `poison` — The Seedcore: “Corrupted — {T}: Target 1/1 creature gets +2/+1 until end of turn. Activate only if an opponent has three or more poison counters.” → `{"kind":"poison"}` - `commanderCasts` — Study Hall: “{1}, {T}: Add one mana of any color. When you spend this mana to cast your commander, scry X, where X is the number of times it's been cast from the command zone this game.” → `{"kind":"commanderCasts","of":"triggering"}` - `noted` — Token Snapshot: “” → `{"kind":"noted","key":"__X"}` - `maxSameName` — Endless Atlas: “{2}, {T}: Draw a card. Activate only if you control three or more lands with the same name.” → `{"kind":"maxSameName","filter":{"types":["Land"]},"who":"you"}` - `distinct` — Color Witness: “Equipped creature gets +1/+0 for each of its colors.” → `{"kind":"distinct","property":"color","filter":{"host":true}}` - `dieResult` — Event Probe dice: “” → `{"kind":"dieResult","of":"total"}` - `handSize` — Diviner's Portent: “Roll a d20 and add the number of cards in your hand.” → `{"kind":"handSize","who":"you"}` - `sharedCreatureTypeMax` — Iter147 Basalt Ravager: “When this creature enters, it deals X damage to any target, where X is the greatest number of creatures you control that have a creature type in common.” → `{"kind":"sharedCreatureTypeMax"}` - `replaced` — Eligeth, Crossroads Augur: “If you would scry a number of cards, draw that many cards instead.” → `{"kind":"replaced","property":"amount"}` - `math` — Token Snapshot: “” → `{"kind":"math","op":"/","a":{"kind":"lifeTotal","who":"you"},"b":2,"round":"up"}`