# Drawstep AI pack (Magic) — part 10 of 15: Values & costs > Every value kind (numbers) and every cost part. Pack index: https://drawstep.xyz/wiki/mtg/pack.md · previous: https://drawstep.xyz/wiki/mtg/pack/triggers-conditions.md · next: https://drawstep.xyz/wiki/mtg/pack/keywords.md · everything in one document: https://drawstep.xyz/wiki/drawstep-mtg-ai-pack.md. Generated from Drawstep's card schema; field names and discriminators are exact. ## 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. ## Costs (`CostDef`) Used by activated abilities (`cost`), `mayPay` / `unlessPays`, keyword abilities and `additionalCost`. Any combination of parts; an empty object is a free cost. | Field | Type | Required | Description | |---|---|---|---| | `oneOf` | `CostDef[]` | no | Announce one alternative payment for this cost (CR 118.9, 601.2b). Use this field alone; each branch is a complete cost | | `chooseX` | `{ min?: number; max?: ValueDef }` | no | CR 107.3b, 601.2b: bounds on announced X. Evaluate max before paying costs, independently of affordability | | `mana` | `string` | no | Mana cost string, e.g. {2}{R} | | `ownManaCost` | `boolean` | no | "Pay its mana cost" (CR 118.12, 202.3): the source's own mana cost, read as the payment is made; a source with no mana cost can't pay it (CR 118.6) | | `genericAmount` | `ValueDef` | no | Computed generic mana added to mana, fixed when a resolution-time cost is paid: "unless you pay {1} for each card in your hand" (CR 107.3, 608.2h) | | `tapSelf` | `boolean` | no | {T} | | `untapSelf` | `boolean` | no | {Q} | | `unattachSelf` | `boolean` | no | CR 701.3d, 118.11, 601.2h: unattach this permanent as payment; an unattached permanent cannot pay this cost | | `payLife` | `ValueDef` | no | Pay this much life; { kind: "var", name: "X" } for "pay X life" (X is announced as the spell is cast) | | `getPoison` | `ValueDef` | no | The payer gets this many poison counters as the payment: "Ward—Get five poison counters" (The Serpent Society; CR 702.21a, 118.11) | | `othersGainLife` | `{ amount: ValueDef; who: "anOpponent" \| "eachOtherPlayer"; perChoice?: number }` | no | CR 118.3, 118.9: other players gain life as payment — "you may have an opponent gain 3 life" (anOpponent: the payer chooses one), "have each other player gain 6 life" (eachOtherPlayer). perChoice: an opponent is chosen separately for each that much life (cumulative upkeep's "An opponent gains 1 life", CR 702.24a) | | `draw` | `ValueDef` | no | CR 121.1, 118.11, 702.24a: draw this many cards as payment ("Cumulative upkeep—Draw a card") | | `addMana` | `string` | no | CR 106.1, 118.11, 702.24a: add this mana to your mana pool as payment ("Cumulative upkeep—Add {R}") | | `opponentCreatesToken` | `{ token: object; count: ValueDef }` | no | CR 118.11, 111.1, 702.24a: an opponent the payer chooses creates this many tokens as payment ("Cumulative upkeep—Have an opponent create a 1/1 red Survivor creature token") | | `opponentCounter` | `{ counter: string; amount: ValueDef; perChoice?: number }` | no | CR 118.11, 122.1, 702.24a: put counters on a creature an opponent controls, chosen by the payer, as payment ("Cumulative upkeep—Put a +1/+1 counter on a creature an opponent controls") | | `damageFromSource` | `ValueDef` | no | CR 118.12, 120.3: punisher payment "unless its controller has ~ deal 6 damage to them" — the source (last known information) deals this much damage to the payer as the payment; always payable, done even if the damage is prevented | | `sacrificeSelf` | `boolean` | no | Sacrifice the source ("Sacrifice ~") | | `sacrificeTogether` | `ObjectFilter[]` | no | CR 118.10, 601.2h: sacrifice one distinct controlled permanent for each filter, simultaneously; one Swamp Forest cannot pay both requirements | | `sacrifice` | `TargetDef` | no | Sacrifice another permanent matching this ("sacrifice X creatures": min / max = X) | | `returnToHand` | `TargetDef` | no | Return matching permanents you control to their owners' hands as a cost; selection does not target (CR 118.11, 601.2h) | | `discard` | `ValueDef` | no | Discard this many cards; { kind: "var", name: "X" } for "discard X cards" | | `discardRandom` | `boolean` | no | Discard the required cards at random as a cost (CR 701.9b, 118.11) | | `reveal` | `ObjectFilter` | no | Reveal one matching card from your hand as a cost; it remains in hand (CR 701.20a, 118.11) | | `revealCards` | `{ filter?: ObjectFilter; count: ValueDef; sharesColor?: boolean }` | no | Reveal this many matching cards from your hand as a cost; they remain in hand (CR 701.20a, 118.11, 601.2h). "Reveal X blue cards from your hand" (count X); "Reveal two cards from your hand that share a color" (sharesColor) | | `discardHand` | `boolean` | no | Discard your hand | | `discardSelf` | `boolean` | no | Discard this card (transmute) | | `addCountersSelf` | `{ counter: string; amount: ValueDef }` | no | CR 118.11, 122.1, 601.2h: put counters on this permanent to pay a cost; apply counter replacement effects | | `removeCounters` | `{ counter?: string; amount: ValueDef; from?: ObjectFilter; anyNumber?: boolean }` | no | Remove counters as payment without targeting; omitted counter permits any kinds, from distributes among controlled permanents (CR 122.1, 601.2h) | | `mill` | `ValueDef` | no | Mill this many cards as payment; requires enough cards in the library (CR 701.17, 601.2h) | | `exertSelf` | `boolean` | no | Exert the source as a cost; skip the exerting player's next untap step (CR 701.43) | | `revealSelf` | `boolean` | no | Reveal this card from hand as a cost (CR 701.20, 602.2a) | | `revealChoice` | `boolean \| string` | no | CR 101.4, 607.2d: "Reveal the player you chose:" — reveal the value secretly chosen for this source; payable only while that secret choice is recorded. true reveals the "player" key; a string names another choice key (Stalking Leonin, Guardian Archon) | | `tapOthers` | `{ filter?: ObjectFilter; count?: ValueDef; totalPower?: number; includeSelf?: boolean; anyNumber?: boolean }` | no | Tap matching untapped controlled permanents as payment (CR 118.11, 601.2h) | | `untapOthers` | `{ filter?: ObjectFilter; count: ValueDef }` | no | CR 118.11, 601.2h: choose this many tapped controlled permanents without targeting and untap them as payment. Untap replacement effects still apply | | `exileSelfFromGraveyard` | `boolean` | no | Exile the source from your graveyard (abilities activated from the graveyard) | | `exileGraveyard` | `boolean` | no | CR 118.12, 406.1: exile every card in the payer's graveyard ("unless its controller exiles all cards from their graveyard"); payable even when it is empty | | `exileTop` | `ValueDef` | no | CR 401.2, 118.12: exile this many cards from the top of your library as payment ("Exile the top card of your library: …"); payable only with that many cards in the library | | `payCounters` | `{ counter: string; amount: ValueDef }` | no | Pay player counters: "Pay {E}{E}" → counter "energy", amount 2 | | `exileOthers` | `{ filter?: ObjectFilter; zones: ("battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command")[]; includeSelf?: boolean; count?: ValueDef; anyNumber?: boolean; totalManaValue?: number; shareCardType?: boolean; minDistinctTypes?: number; topmost?: boolean }` | no | Exile other cards from the zones (escape, craft, "exile a card from your hand", "exile X cards from your graveyard": count = X) | | `moveCards` | `{ from: "graveyard" \| "hand"; to: "hand" \| "library"; position?: "top" \| "bottom"; filter?: ObjectFilter; count?: number }` | no | CR 118.12, 400.1: move cards you own between your zones as a payment — "return a basic land card from your graveyard to your hand", "put a card from your graveyard on the bottom of your library" (count default 1; the payer chooses, and orders several going to the library) | | `exileSelf` | `boolean` | no | Exile this object from wherever it is ("Exile ~: …") | | `collectEvidence` | `ValueDef` | no | Collect evidence N: exile cards with total mana value N+ from your graveyard | | `forage` | `boolean` | no | Forage: exile three cards from your graveyard or sacrifice a Food | | `behold` | `string` | no | Behold a : choose one you control or reveal one from your hand | | `returnUnblockedAttacker` | `boolean` | no | Return an unblocked attacker you control to hand (ninjutsu) | | `discardMatching` | `ObjectFilter` | no | Discard a card matching the filter (retrace: a land card) | | `linkedToGraveyard` | `ObjectFilter` | no | CR 607.2a, 602.2b: put a card exiled with the source that matches this filter into its owner's graveyard ({} = any such card): "Put a creature card exiled with Shelob into its owner's graveyard:" is { types: ["Creature"] } | | `blight` | `ValueDef` | no | Put N -1/-1 counters on a creature you control | | `waterbend` | `boolean` | no | Waterbend: artifacts and creatures you control may be tapped to pay {1} each of the mana | | `xManaColor` | `"W" \| "U" \| "B" \| "R" \| "G"` | no | CR 107.3: "Spend only black mana on X" — each {X} in `mana` is paid with mana of this colour | | `manaColor` | `"W" \| "U" \| "B" \| "R" \| "G" \| "chosen"` | no | CR 106.6, 602.2b: "Spend only mana of the chosen color to activate this ability" — all mana spent on this cost (generic and increases included) must be of this colour; chosen = the source's chosen colour |