enjine 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +196 -1
- data/README.md +12 -3
- data/SUPPORTED.md +73 -38
- data/docs/ARCHITECTURE.md +7 -2
- data/docs/MECHANICS_COVERAGE.md +10 -8
- data/docs/guides/api.md +2 -1
- data/docs/guides/card-data-format.md +146 -9
- data/docs/plans/dsl-gaps.md +23 -0
- data/docs/reference/abilities.md +299 -25
- data/docs/reference/costs.md +59 -6
- data/docs/reference/decisions.md +7 -1
- data/docs/reference/effects.md +200 -27
- data/docs/reference/filters.md +30 -3
- data/docs/reference/keywords.md +58 -2
- data/docs/reference/subtypes.md +18 -0
- data/docs/reference/triggers.md +94 -14
- data/docs/reference/types.md +20 -0
- data/lib/enjine/actions/play_land.rb +3 -1
- data/lib/enjine/actions/special_action.rb +4 -0
- data/lib/enjine/actions/turn_face_up.rb +25 -0
- data/lib/enjine/actions/unlock.rb +23 -0
- data/lib/enjine/card_definition.rb +54 -15
- data/lib/enjine/card_face_down.rb +31 -0
- data/lib/enjine/card_faces.rb +4 -2
- data/lib/enjine/card_rooms.rb +86 -0
- data/lib/enjine/catalog.rb +9 -3
- data/lib/enjine/cli/text.rb +11 -3
- data/lib/enjine/color_identity.rb +34 -1
- data/lib/enjine/decisions/casting.rb +6 -3
- data/lib/enjine/decisions/combat.rb +4 -2
- data/lib/enjine/decisions/damage_order.rb +18 -0
- data/lib/enjine/engine/ability_layers.rb +14 -1
- data/lib/enjine/engine/casting/alt_casting.rb +45 -5
- data/lib/enjine/engine/casting/cast_choices.rb +21 -2
- data/lib/enjine/engine/casting/casting.rb +42 -29
- data/lib/enjine/engine/casting/cost_options.rb +3 -1
- data/lib/enjine/engine/casting/costs.rb +8 -1
- data/lib/enjine/engine/casting/payment.rb +47 -9
- data/lib/enjine/engine/casting/permissions.rb +19 -17
- data/lib/enjine/engine/casting/target_counts.rb +14 -3
- data/lib/enjine/engine/casting/waterbend.rb +22 -2
- data/lib/enjine/engine/characteristics.rb +11 -11
- data/lib/enjine/engine/combat.rb +45 -14
- data/lib/enjine/engine/copies.rb +12 -4
- data/lib/enjine/engine/crimes.rb +46 -0
- data/lib/enjine/engine/damage.rb +85 -1
- data/lib/enjine/engine/entering.rb +36 -2
- data/lib/enjine/engine/face_down.rb +12 -3
- data/lib/enjine/engine/face_down_permanents.rb +108 -0
- data/lib/enjine/engine/faces.rb +20 -5
- data/lib/enjine/engine/follow_ups.rb +4 -1
- data/lib/enjine/engine/mana_sources.rb +18 -3
- data/lib/enjine/engine/options_memo.rb +140 -0
- data/lib/enjine/engine/permanent_designations.rb +29 -0
- data/lib/enjine/engine/resolution.rb +71 -6
- data/lib/enjine/engine/rooms.rb +86 -0
- data/lib/enjine/engine/rules.rb +6 -4
- data/lib/enjine/engine/state_based_actions.rb +25 -4
- data/lib/enjine/engine/triggers.rb +25 -20
- data/lib/enjine/engine/turn_history.rb +43 -5
- data/lib/enjine/engine/turn_structure.rb +1 -0
- data/lib/enjine/engine/zones.rb +37 -8
- data/lib/enjine/engine.rb +5 -1
- data/lib/enjine/events.rb +11 -0
- data/lib/enjine/frames.rb +5 -2
- data/lib/enjine/fuzz.rb +3 -0
- data/lib/enjine/game.rb +3 -1
- data/lib/enjine/mana.rb +3 -0
- data/lib/enjine/mechanics/abilities/chosen_values.rb +49 -6
- data/lib/enjine/mechanics/abilities/cost_changes.rb +32 -10
- data/lib/enjine/mechanics/abilities/damage_replacements.rb +137 -65
- data/lib/enjine/mechanics/abilities/designated.rb +57 -0
- data/lib/enjine/mechanics/abilities/entering_choices.rb +40 -21
- data/lib/enjine/mechanics/abilities/life_replacements.rb +74 -0
- data/lib/enjine/mechanics/abilities/mana_ability.rb +10 -4
- data/lib/enjine/mechanics/abilities/play_permissions.rb +52 -20
- data/lib/enjine/mechanics/abilities/player_rules.rb +30 -13
- data/lib/enjine/mechanics/abilities/stack_abilities.rb +12 -7
- data/lib/enjine/mechanics/abilities/static.rb +19 -6
- data/lib/enjine/mechanics/card_spec.rb +63 -11
- data/lib/enjine/mechanics/costs/base.rb +68 -9
- data/lib/enjine/mechanics/costs/behold.rb +28 -5
- data/lib/enjine/mechanics/costs/choose_creature_type.rb +43 -0
- data/lib/enjine/mechanics/costs/collect_evidence.rb +60 -0
- data/lib/enjine/mechanics/costs/exile_permanent.rb +41 -0
- data/lib/enjine/mechanics/costs/one_of.rb +3 -0
- data/lib/enjine/mechanics/costs/pay_life.rb +27 -8
- data/lib/enjine/mechanics/costs/remove_counters.rb +8 -5
- data/lib/enjine/mechanics/costs/tap.rb +44 -3
- data/lib/enjine/mechanics/effects/base.rb +36 -7
- data/lib/enjine/mechanics/effects/become.rb +29 -12
- data/lib/enjine/mechanics/effects/choose_cards.rb +44 -14
- data/lib/enjine/mechanics/effects/copy.rb +58 -21
- data/lib/enjine/mechanics/effects/counters.rb +18 -6
- data/lib/enjine/mechanics/effects/damage.rb +11 -0
- data/lib/enjine/mechanics/effects/delayed_triggers.rb +13 -6
- data/lib/enjine/mechanics/effects/earthbend.rb +2 -1
- data/lib/enjine/mechanics/effects/fight.rb +11 -0
- data/lib/enjine/mechanics/effects/library.rb +76 -18
- data/lib/enjine/mechanics/effects/may.rb +4 -2
- data/lib/enjine/mechanics/effects/pay.rb +27 -10
- data/lib/enjine/mechanics/effects/repeat.rb +92 -0
- data/lib/enjine/mechanics/effects/search.rb +34 -6
- data/lib/enjine/mechanics/effects/tokens.rb +42 -10
- data/lib/enjine/mechanics/filters/any_target.rb +6 -3
- data/lib/enjine/mechanics/filters/base.rb +36 -17
- data/lib/enjine/mechanics/filters/exile.rb +27 -0
- data/lib/enjine/mechanics/filters/permanents.rb +7 -0
- data/lib/enjine/mechanics/filters/stack.rb +14 -8
- data/lib/enjine/mechanics/keywords/alternative_costs.rb +80 -22
- data/lib/enjine/mechanics/keywords/cards_have.rb +67 -0
- data/lib/enjine/mechanics/keywords/craft.rb +132 -0
- data/lib/enjine/mechanics/keywords/cycling.rb +46 -7
- data/lib/enjine/mechanics/keywords/extort.rb +2 -0
- data/lib/enjine/mechanics/keywords/face_down.rb +165 -0
- data/lib/enjine/mechanics/keywords/flags.rb +3 -1
- data/lib/enjine/mechanics/keywords/hideaway.rb +6 -5
- data/lib/enjine/mechanics/keywords/impending.rb +75 -0
- data/lib/enjine/mechanics/keywords/increment.rb +2 -0
- data/lib/enjine/mechanics/keywords/infinity.rb +46 -0
- data/lib/enjine/mechanics/keywords/kicker.rb +24 -6
- data/lib/enjine/mechanics/keywords/miracle.rb +142 -0
- data/lib/enjine/mechanics/keywords/ninjutsu.rb +101 -0
- data/lib/enjine/mechanics/keywords/offspring.rb +48 -0
- data/lib/enjine/mechanics/keywords/persist_and_undying.rb +42 -0
- data/lib/enjine/mechanics/keywords/protection.rb +24 -8
- data/lib/enjine/mechanics/keywords/riot.rb +13 -10
- data/lib/enjine/mechanics/keywords/split_second.rb +29 -0
- data/lib/enjine/mechanics/keywords/storm_and_cascade.rb +5 -0
- data/lib/enjine/mechanics/keywords/void.rb +34 -0
- data/lib/enjine/mechanics/linked.rb +33 -3
- data/lib/enjine/mechanics/mana_spent.rb +1 -1
- data/lib/enjine/mechanics/selector.rb +62 -18
- data/lib/enjine/mechanics/subtypes/case.rb +68 -0
- data/lib/enjine/mechanics/triggers/base.rb +13 -4
- data/lib/enjine/mechanics/triggers/casting.rb +15 -9
- data/lib/enjine/mechanics/triggers/combat.rb +32 -12
- data/lib/enjine/mechanics/triggers/crime.rb +28 -0
- data/lib/enjine/mechanics/triggers/damage.rb +33 -18
- data/lib/enjine/mechanics/triggers/draw_and_discard.rb +19 -6
- data/lib/enjine/mechanics/triggers/keyword_actions.rb +17 -0
- data/lib/enjine/mechanics/triggers/rooms.rb +49 -0
- data/lib/enjine/mechanics/triggers/tap_and_counters.rb +20 -9
- data/lib/enjine/mechanics/triggers/zone_changes.rb +24 -9
- data/lib/enjine/mechanics/types/battle.rb +130 -0
- data/lib/enjine/mechanics/values.rb +84 -30
- data/lib/enjine/replacements.rb +21 -2
- data/lib/enjine/rules_monitor.rb +56 -71
- data/lib/enjine/snapshot/deep_copy.rb +23 -0
- data/lib/enjine/snapshot/player_checks.rb +10 -2
- data/lib/enjine/snapshot.rb +2 -1
- data/lib/enjine/state.rb +2 -2
- data/lib/enjine/verify.rb +10 -3
- data/lib/enjine/version.rb +1 -1
- data/lib/enjine/view.rb +50 -14
- data/lib/enjine.rb +1 -1
- metadata +34 -1
data/SUPPORTED.md
CHANGED
|
@@ -9,6 +9,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
9
9
|
| Name | Rules | Description |
|
|
10
10
|
| --- | --- | --- |
|
|
11
11
|
| [`artifact`](docs/reference/types.md#artifact) | 301.1 | A permanent cast at sorcery speed. |
|
|
12
|
+
| [`battle`](docs/reference/types.md#battle) | 310.1, 310.4, 310.5, 310.6, 310.7, 310.9, 120.3h, 704.5v, 205.3q | A permanent with a printed `defense`: it enters with that many defense counters. Each battle has a protector (a Siege's is an opponent of its controller, chosen as it enters); the protector's opponents can attack it and the protector can block for it. Damage dealt to it removes defense counters; with none left it's put into its owner's graveyard (unless it's the source of a triggered ability still waiting or on the stack). Every battle needs a battle type: siege (CR 205.3q). |
|
|
12
13
|
| [`creature`](docs/reference/types.md#creature) | 302.1, 302.4, 302.6, 307.1 | A permanent with power and toughness that can attack and block. Cast at sorcery speed. It can't attack or use {T} abilities unless controlled continuously since its controller's most recent turn began (summoning sickness). |
|
|
13
14
|
| [`enchantment`](docs/reference/types.md#enchantment) | 303.1 | A permanent cast at sorcery speed. |
|
|
14
15
|
| [`instant`](docs/reference/types.md#instant) | 304.1, 304.2, 608.2n | A spell cast any time its controller has priority. Its spell ability resolves, then it goes to the graveyard. |
|
|
@@ -35,6 +36,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
35
36
|
| [`mountain`](docs/reference/subtypes.md#mountain) | 305.6, 205.3i | Basic land type. A land with this subtype has "{T}: Add {R}." |
|
|
36
37
|
| [`plains`](docs/reference/subtypes.md#plains) | 305.6, 205.3i | Basic land type. A land with this subtype has "{T}: Add {W}." |
|
|
37
38
|
| [`saga`](docs/reference/subtypes.md#saga) | 715.3a, 715.3c, 505.4, 715.4, 704.5s | Enchantment type. A Saga enters with a lore counter; as its controller's precombat main phase begins, they put another lore counter on it. Each lore counter added can trigger its chapter abilities. Once its lore counters reach its final chapter number and no chapter ability of it is waiting to resolve, its controller sacrifices it. |
|
|
39
|
+
| [`siege`](docs/reference/subtypes.md#siege) | 310.12, 310.9, 712.10, 608.2g | Battle type. As it enters, an opponent of its controller becomes its protector. When the last defense counter is removed from it, its controller exiles it, then may cast it transformed (its back face) without paying its mana cost. |
|
|
38
40
|
| [`swamp`](docs/reference/subtypes.md#swamp) | 305.6, 205.3i | Basic land type. A land with this subtype has "{T}: Add {B}." |
|
|
39
41
|
|
|
40
42
|
## Keyword abilities
|
|
@@ -50,6 +52,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
50
52
|
| [`cant_be_beamed_up`](docs/reference/keywords.md#cant_be_beamed_up) | 702.196b | This creature can't be returned to its owner's hand to pay a beam me up cost. |
|
|
51
53
|
| [`cant_be_blocked`](docs/reference/keywords.md#cant_be_blocked) | 509.1b | Restriction: this creature can't be blocked. |
|
|
52
54
|
| [`cant_be_countered`](docs/reference/keywords.md#cant_be_countered) | 701.6a, 101.2 | This spell can't be countered: counter effects leave it on the stack. |
|
|
55
|
+
| [`cant_become_untapped`](docs/reference/keywords.md#cant_become_untapped) | 701.26b, 502.3, 101.2 | This permanent can't become untapped: not in its controller's untap step nor by an effect ("untap it" does nothing). |
|
|
53
56
|
| [`cant_block`](docs/reference/keywords.md#cant_block) | 509.1b | Restriction: this creature can't block. |
|
|
54
57
|
| [`cascade`](docs/reference/keywords.md#cascade) | 702.85a, 702.85c, 608.2g | When you cast this spell, exile cards from the top of your library until you exile a nonland card with lesser mana value. You may cast it without paying its mana cost. Then the exiled cards not cast go on the bottom of your library in a random order. |
|
|
55
58
|
| [`changeling`](docs/reference/keywords.md#changeling) | 702.73a, 604.3, 205.3m, 113.6a | This object is every creature type (a characteristic-defining ability that works in all zones). |
|
|
@@ -74,10 +77,12 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
74
77
|
| [`menace`](docs/reference/keywords.md#menace) | 702.111b | Can't be blocked except by two or more creatures. |
|
|
75
78
|
| [`must_be_blocked`](docs/reference/keywords.md#must_be_blocked) | 509.1c | Requirement: this attacking creature must be blocked if able. Declaring blockers can't finish while it is unblocked and a creature that could block it blocks nothing. |
|
|
76
79
|
| [`paradigm`](docs/reference/keywords.md#paradigm) | 702.192a, 707.12, 603.7, 608.2g | As this instant or sorcery finishes resolving: if it's the first time a spell you control with its name has resolved this game, at the beginning of each of your precombat main phases for the rest of the game you create a copy of the card in exile and may cast it without paying its mana cost. Then the spell is exiled. |
|
|
80
|
+
| [`persist`](docs/reference/keywords.md#persist) | 702.79a, 603.10a, 603.4 | When this permanent dies, if it had no -1/-1 counters on it, return it to the battlefield under its owner's control with a -1/-1 counter on it. |
|
|
77
81
|
| [`phasing`](docs/reference/keywords.md#phasing) | 702.26a, 702.26p, 502.1 | During each of its controller's untap steps, before they untap, it phases out if it's phased in (and phases in if it phased out under their control). |
|
|
78
82
|
| [`prowess`](docs/reference/keywords.md#prowess) | 702.108a | Whenever you cast a noncreature spell, this creature gets +1/+1 until end of turn. |
|
|
79
83
|
| [`reach`](docs/reference/keywords.md#reach) | 702.17b | Can block creatures with flying. |
|
|
80
|
-
| [`riot`](docs/reference/keywords.md#riot) | 702.136a, 614.12 | As this permanent enters, its controller chooses an additional +1/+1 counter or haste (an enter_choice: `{type: "option", option: "counter" | "haste"}`). |
|
|
84
|
+
| [`riot`](docs/reference/keywords.md#riot) | 702.136a, 702.136b, 614.12 | As this permanent enters, its controller chooses an additional +1/+1 counter or haste (an enter_choice: `{type: "option", option: "counter" | "haste"}`). Riot granted by a static ability ("Other Spiders you control have riot") is chosen as it enters too, and haste chosen this way stays if it later loses riot. |
|
|
85
|
+
| [`split_second`](docs/reference/keywords.md#split_second) | 702.61a, 702.61b, 702.61c | As long as this spell is on the stack, players can't cast spells or activate abilities that aren't mana abilities (mana abilities, special actions and triggered abilities still work). |
|
|
81
86
|
| [`start_your_engines`](docs/reference/keywords.md#start_your_engines) | 702.179a, 702.179b, 702.179c, 702.179d, 704.3 | If you control this permanent and have no speed, your speed becomes 1. Once you have speed, it increases by 1 (to at most 4) once on each of your turns when one or more opponents lose life. Pair with `max_speed` abilities and the `speed` amount. |
|
|
82
87
|
| [`station`](docs/reference/keywords.md#station) | 702.184a, 722.4 | An activated ability: tap another untapped creature you control to put charge counters equal to its power on this permanent. Sorcery speed. Pair with `station_symbol` abilities for what the counters unlock. |
|
|
83
88
|
| [`storied`](docs/reference/keywords.md#storied) | 702.195a, 702.195b, 702.195c | While you control this permanent, once you control three or more permanents that are artifacts, Sagas and/or legendary, you have an enduring story for the rest of the game (condition `{"designation": "enduring_story"}`). |
|
|
@@ -85,6 +90,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
85
90
|
| [`sunburst`](docs/reference/keywords.md#sunburst) | 702.44a, 702.44b | As this permanent enters from the stack as a resolving spell, it gets a +1/+1 counter (a creature) or a charge counter (otherwise) for each color of mana spent to cast it. |
|
|
86
91
|
| [`suspend`](docs/reference/keywords.md#suspend) | 702.62a, 702.62b | This card has suspend: while it's exiled with time counters, its owner removes one at the beginning of each of their upkeeps; when the last is removed they may play it without paying its mana cost (a creature spell gains haste). "Suspend N—cost" is the ability `suspend`. |
|
|
87
92
|
| [`trample`](docs/reference/keywords.md#trample) | 702.19b, 702.19e | Excess combat damage beyond lethal damage to its blockers can be assigned to the player or planeswalker it's attacking. |
|
|
93
|
+
| [`undying`](docs/reference/keywords.md#undying) | 702.93a, 603.10a, 603.4 | When this permanent dies, if it had no +1/+1 counters on it, return it to the battlefield under its owner's control with a +1/+1 counter on it. |
|
|
88
94
|
| [`vigilance`](docs/reference/keywords.md#vigilance) | 702.20b | Attacking doesn't cause this creature to tap. |
|
|
89
95
|
| [`wither`](docs/reference/keywords.md#wither) | 702.80a, 702.80c, 702.80d, 120.3d | Damage this source deals to creatures is dealt as that many -1/-1 counters instead of marked damage, put by its controller. |
|
|
90
96
|
|
|
@@ -93,7 +99,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
93
99
|
| Name | Rules | Description |
|
|
94
100
|
| --- | --- | --- |
|
|
95
101
|
| [`activated`](docs/reference/abilities.md#activated) | 602.1, 602.2, 602.5b, 602.5d, 702.177a, 702.193a, 702.193b, 702.142a | An activated ability: announce it, choose targets, pay its costs, then it goes on the stack. `timing: "sorcery"` restricts it to sorcery speed, `"your_turn"` to your turns; `limit: "once_each_turn"` to one activation per turn, `"once"` to one activation for as long as the object exists; `only_if` to when a condition holds. `zone` ("exile", "graveyard" or "hand") makes it function only while its card is in that zone ("activate only if this card is exiled"). `exhaust: true` makes it an exhaust ability: it can be activated only once (CR 702.177a). `power_up: true` makes it a power-up ability: activate only once, and if the permanent entered this turn its cost is reduced by the permanent's mana cost (CR 702.193). `boast: true`: activate only if this creature attacked this turn and only once each turn (CR 702.142a). |
|
|
96
|
-
| [`additional_cost`](docs/reference/abilities.md#additional_cost) | 601.2b, 601.2f, 601.2h, 118.8, 118.8b | As an additional cost to cast this spell, pay `cost` too (mana and/or chosen costs such as `sacrifice_permanent`). The spell can't be cast without it. `optional: true`: you may pay it (announced with the `choose_kicker` decision); the condition `{"cast_with": "additional_cost"}` then holds (the spell isn't kicked). |
|
|
102
|
+
| [`additional_cost`](docs/reference/abilities.md#additional_cost) | 601.2b, 601.2f, 601.2h, 118.8, 118.8b, 601.3c | As an additional cost to cast this spell, pay `cost` too (mana and/or chosen costs such as `sacrifice_permanent`). The spell can't be cast without it. `optional: true`: you may pay it (announced with the `choose_kicker` decision); the condition `{"cast_with": "additional_cost"}` then holds (the spell isn't kicked). With `flash: true` (optional only) you may cast it from your hand as though it had flash if you pay it: cast that way, only paying it is offered. |
|
|
97
103
|
| [`additional_land_plays`](docs/reference/abilities.md#additional_land_plays) | 305.2, 305.2a, 305.2b, 604.1 | Its controller may play an additional land on each of their turns. Each instance adds one land play (CR 305.2); lands put onto the battlefield by effects don't count. |
|
|
98
104
|
| [`additional_triggers`](docs/reference/abilities.md#additional_triggers) | 603.2d, 119.9, 607.2d | While this permanent is on the battlefield, a triggered ability of a permanent its controller controls triggers an additional time if it triggers because of `cause` (you_gain_life: its controller gaining life) and/or its permanent matches `of` (a filter: "triggered abilities of Allies you control", {"creature": {"other": true, "subtypes": "chosen"}}). At least one of them. |
|
|
99
105
|
| [`beam_me_up`](docs/reference/abilities.md#beam_me_up) | 702.196a, 702.196b, 118.9, 601.2b, 601.2f, 601.2h | You may cast this instant or sorcery card from your graveyard for `cost` plus returning a creature you control to its owner's hand, instead of its mana cost. If you do, it's exiled whenever it would leave the stack. Offered as a cast option with `via: "beam:<ref>"`. |
|
|
@@ -101,24 +107,27 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
101
107
|
| [`cant_be_blocked_by`](docs/reference/abilities.md#cant_be_blocked_by) | 509.1b, 509.1a | This creature can't be blocked by creatures matching `filter` (checked as blockers are declared, with their current characteristics). |
|
|
102
108
|
| [`cant_be_targeted_by`](docs/reference/abilities.md#cant_be_targeted_by) | 115.4, 113.7, 702.11d | This permanent can't be the target of abilities its controller's opponents control whose source matches `abilities_from` (a card spec, e.g. {"types": ["artifact"]}). |
|
|
103
109
|
| [`cant_phase_in`](docs/reference/abilities.md#cant_phase_in) | 702.26a, 502.1, 604.1 | While this permanent is on the battlefield, permanents can't phase in. |
|
|
110
|
+
| [`cards_have`](docs/reference/abilities.md#cards_have) | 611.3a, 604.1, 118.9, 601.2b, 702.190a | While this permanent is on the battlefield, cards you own in `zone` (graveyard (default), hand or exile) matching `cards` have the keyword alternative cost `ability` (flashback, harmonize, mayhem, web_slinging, sneak or miracle) and may be cast with it from that zone. Cast option `via: "alt:cards_have:<permanent>:<ref>"`. |
|
|
104
111
|
| [`cast_restriction`](docs/reference/abilities.md#cast_restriction) | 601.3, 101.2 | This card can be cast only while `only_if` (a condition, checked for the player who would cast it) holds, whatever lets them cast it. |
|
|
105
112
|
| [`chapter`](docs/reference/abilities.md#chapter) | 715.2, 715.2b, 715.2c, 715.2d, 122.6 | A Saga's chapter ability: triggers when lore counters put on it bring their number from below `chapter` to at least `chapter`. Its targets are chosen as it's put on the stack. A Saga's final chapter number is its greatest `chapter`. |
|
|
106
113
|
| [`choose_basic_land_type`](docs/reference/abilities.md#choose_basic_land_type) | 614.12, 305.6, 607.2d | As this permanent enters, its controller chooses a basic land type; filters with "subtypes": "chosen" and a static ability's `"subtypes": "chosen"` use it ("this land is the chosen type"). |
|
|
107
|
-
| [`choose_card_name`](docs/reference/abilities.md#choose_card_name) | 614.12, 614.12a, 201.4, 201.4a, 607.2 | As this permanent enters, its controller chooses a card name among the cards in the game (`not`: card types the named card mustn't have, e.g. ["land"]); abilities of it that say "the chosen name" use it. |
|
|
114
|
+
| [`choose_card_name`](docs/reference/abilities.md#choose_card_name) | 614.12, 614.12a, 201.4, 201.4a, 607.2, 701.20e | As this permanent enters, its controller chooses a card name among the cards in the game (`not`: card types the named card mustn't have, e.g. ["land"]; `types`: it must have one of these, ["land"] for "a land card name"); abilities of it that say "the chosen name" use it. `look_at_hand: "opponent"`: first they look at an opponent's hand. |
|
|
108
115
|
| [`choose_card_type`](docs/reference/abilities.md#choose_card_type) | 614.12, 205.2a, 607.2d | As this permanent enters, its controller chooses a card type; filters with "types": "chosen" (or "not": "chosen") use it. |
|
|
109
116
|
| [`choose_color`](docs/reference/abilities.md#choose_color) | 614.12, 105.4, 607.2d | As this permanent enters, its controller chooses a color; filters with "colors": "chosen" (and other abilities of it) use it. |
|
|
110
117
|
| [`choose_creature_type`](docs/reference/abilities.md#choose_creature_type) | 614.12, 205.3m, 607.2d | As this permanent enters, its controller chooses a creature type; filters with "subtypes": "chosen" use it. |
|
|
111
118
|
| [`choose_number`](docs/reference/abilities.md#choose_number) | 614.12, 614.12a, 607.2 | As this permanent enters, its controller chooses a number from `min` to `max`; abilities of it that say "the chosen number" use it. |
|
|
112
119
|
| [`choose_option`](docs/reference/abilities.md#choose_option) | 614.12, 607.2f, 614.12b | As this permanent enters, its controller chooses one of the `options` (words with no rules meaning); a condition {"chosen": word} is true when that word was chosen. |
|
|
113
120
|
| [`class_level`](docs/reference/abilities.md#class_level) | 717.2a, 717.2b, 717.2d, 717.3, 602.5d | A class level bar: `cost` (a mana cost string or a list of costs): this permanent's level becomes `level`; activate only if its level is `level` - 1, as a sorcery. While its level is `level` or greater it has `keywords` and `abilities`. A permanent without a level is level 1. |
|
|
114
|
-
| [`cost_modifier`](docs/reference/abilities.md#cost_modifier) | 601.2f, 118.7a, 604.1, 601.2a | While on the battlefield: spells cast by `caster` (you, opponent or any; default you) whose card types match `spells` ({"any_of": [types], "not": [types]}, default all spells; `subtypes` and `
|
|
121
|
+
| [`cost_modifier`](docs/reference/abilities.md#cost_modifier) | 601.2f, 118.7a, 604.1, 601.2a | While on the battlefield: spells cast by `caster` (you, opponent or any; default you) whose card types match `spells` ({"any_of": [types], "not": [types]}, default all spells; `subtypes`, `colors` and `name` narrow it: "Dragon spells", "red spells"; `"subtypes": "chosen"`: of the type chosen for this permanent, `"name": "chosen"`: with the name its source chose) cost `reduce` less or `increase` more generic mana. `from` / `not_from`: only spells cast from (not from) that zone (hand | graveyard | exile | library | outside). |
|
|
115
122
|
| [`cost_reduction`](docs/reference/abilities.md#cost_reduction) | 601.2f, 118.7a, 702.41a | This spell costs `amount` generic mana less to cast, if the optional `if` condition holds when its total cost is determined (after targets are chosen). `amount` may be computed, e.g. {"count": {"each": "artifact", "controller": "you"}} for affinity for artifacts (CR 702.41a). It can't reduce colored mana or go below {0}. |
|
|
123
|
+
| [`craft`](docs/reference/abilities.md#craft) | 702.167a, 702.167b, 702.167c, 712.11a, 602.2b, 406.1 | Craft with `materials` `cost`: pay `cost`, exile this permanent and exile the materials (`count` (default 1) permanents you control and/or cards in your graveyard matching the card spec `card`; `or_more: true`: that many or more), chosen with `choose_cost`: return this card to the battlefield transformed under its owner's control. Sorcery speed. The exiled materials are the selector "exiled_for_cost". |
|
|
116
124
|
| [`crew`](docs/reference/abilities.md#crew) | 702.122a, 702.122b, 702.122e, 301.7, 301.7a, 301.7b, 208.3, 302.6 | Crew N: tap any number of other untapped creatures you control with total power N or more (chosen one at a time; `done` once the total is enough): this permanent becomes an artifact creature until end of turn. A Vehicle has its printed power and toughness only while it's a creature. |
|
|
117
|
-
| [`cycling`](docs/reference/abilities.md#cycling) | 702.29a, 702.29b, 702.29e, 702.29f, 113.6m, 602.2a | Cycling: pay `cost` and discard this card from your hand to draw a card. With `for` it is typecycling: instead search your library for a card matching `for`, reveal it, put it into your hand, then shuffle. |
|
|
118
|
-
| [`damage_replacement`](docs/reference/abilities.md#damage_replacement) | 614.1a, 614.5, 614.9, 616.1, 616.1e, 616.1f, 120.2b | While this permanent is on the battlefield, damage from sources in `by` to recipients in `to` (both optional; `combat`: combat | noncombat) is changed: `multiply` (2 = "double that damage"), `plus` an amount ("that much damage plus 1"), or `redirect` ("self" | "attached": dealt to this permanent or the one it's attached to instead). A scope is "self", "attached" or {"each": filter, "controller": you|opponent|any, "other": bool}; `each` is optional and players match too, so {"controller": "opponent"} is "an opponent or a permanent an opponent controls".
|
|
125
|
+
| [`cycling`](docs/reference/abilities.md#cycling) | 702.29a, 702.29b, 702.29c, 702.29d, 702.29e, 702.29f, 113.6m, 602.2a, 107.3 | Cycling: pay `cost` and discard this card from your hand to draw a card. With `for` it is typecycling: instead search your library for a card matching `for`, reveal it, put it into your hand, then shuffle. `cost` is a mana cost string (it may hold {X}, announced as it's activated) or a list of costs (`[{"pay_life": 2}]`). "When you cycle this card" is a triggered ability with `zone: "graveyard"` and the trigger `{"cycles": {"self": true}}`; its X is the cycling ability's. |
|
|
126
|
+
| [`damage_replacement`](docs/reference/abilities.md#damage_replacement) | 614.1a, 614.5, 614.9, 616.1, 616.1e, 616.1f, 120.2b | While this permanent is on the battlefield, damage from sources in `by` to recipients in `to` (both optional; `combat`: combat | noncombat) is changed: `multiply` (2 = "double that damage"), `plus` an amount ("that much damage plus 1"), or `redirect` ("self" | "attached": dealt to this permanent or the one it's attached to instead). A scope is "self", "attached" or {"each": filter, "controller": you|opponent|any, "other": bool}; `each` is optional and players match too, so {"controller": "opponent"} is "an opponent or a permanent an opponent controls". Redirections apply first; when the order of the others changes the result, the affected player chooses it (a damage_order decision), else prevention, then multiplying, then adding. |
|
|
119
127
|
| [`damage_unpreventable`](docs/reference/abilities.md#damage_unpreventable) | 615.12 | While this permanent is on the battlefield, damage from sources in `by` to recipients in `to` (both optional; `combat`: combat | noncombat) can't be prevented: prevention effects don't reduce it and shields aren't used up. |
|
|
120
128
|
| [`destroy_replacement`](docs/reference/abilities.md#destroy_replacement) | 614.1a, 614.8, 701.8a, 701.21a, 704.5f, 704.5g, 704.5h | If a permanent matching `affects` would be destroyed (by an effect, lethal damage or deathtouch), instead: all its `remove_counters` counters are removed (if given) and, with `remove_damage: true`, all damage marked on it is removed. Sacrificing isn't destroying, and 0 toughness isn't either. |
|
|
121
129
|
| [`devour`](docs/reference/abilities.md#devour) | 702.82a, 702.82b, 702.82c, 614.12, 701.21a | Devour `amount`: as this permanent enters, you may sacrifice any number of permanents matching `each` (default "creature"; "land" for devour land) that you control, one at a time; it enters with `amount` +1/+1 counters for each. |
|
|
130
|
+
| [`disguise`](docs/reference/abilities.md#disguise) | 702.168a, 702.168b, 702.168c, 702.168d, 708.2, 708.4, 708.8, 116.2b | Disguise: you may cast this card face down as a nameless colorless 2/2 creature spell with ward {2} by paying {3} rather than its mana cost (cast option `via: "alt:<ref>"`). Any time you have priority you may turn the face-down permanent face up by paying `cost` (special action `{type: "turn_face_up", via: "disguise"}`). |
|
|
122
131
|
| [`double_counters`](docs/reference/abilities.md#double_counters) | 614.1a, 122.6, 122.6a, 616.1 | While this permanent is on the battlefield, if its controller would put one or more counters (only `counter`, if given) on a permanent matching `affects` ({"each": filter, "controller": you|opponent|any}, relative to this permanent's controller), the number put is doubled. This includes counters a permanent enters with. |
|
|
123
132
|
| [`double_tokens`](docs/reference/abilities.md#double_tokens) | 614.1a, 614.5, 111.1, 616.1 | While this permanent is on the battlefield, if tokens would be created under its controller's control, twice that many of those tokens are created instead. Several apply one after another (two make four times as many). |
|
|
124
133
|
| [`draw_replacement`](docs/reference/abilities.md#draw_replacement) | 614.11, 614.11a, 614.5, 121.2, 616.1 | While this permanent is on the battlefield, each time its controller would draw a card, they draw `amount` cards instead (even with an empty library). The draws it makes aren't replaced by it again, but another such effect applies to each of them. |
|
|
@@ -137,40 +146,49 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
137
146
|
| [`exile_if_dies`](docs/reference/abilities.md#exile_if_dies) | 614.1a, 700.4, 603.12, 607.2a | While this permanent is on the battlefield, a permanent matching `affects` that would be put into a graveyard from the battlefield is exiled instead; the card is "exiled with" this permanent (exiled_with). `then`: effects right after ("instead exile it and you gain 2 life"; a reflexive_trigger for "When you do, ..."), reading {"triggering": "object"} (the exiled card) and "player" (who controlled it). |
|
|
138
147
|
| [`firebending`](docs/reference/abilities.md#firebending) | 702.189a, 500.5 | Firebending `amount`: whenever this creature attacks, add that much {R}; you don't lose this mana as steps end until end of combat. |
|
|
139
148
|
| [`first_flips_win`](docs/reference/abilities.md#first_flips_win) | 705.3, 604.1 | The first time each turn its controller flips one or more coins, those coins come up heads and they win those flips. |
|
|
140
|
-
| [`flashback`](docs/reference/abilities.md#flashback) | 702.34a, 118.9, 601.2b, 601.2f, 601.2h | Flashback: you may cast this instant or sorcery card from your graveyard by paying `cost` rather than its mana cost; then it's exiled whenever it would leave the stack. `cost` is a mana cost string or a list of costs (`[{"mana": "{1}{U}"}, {"tap_permanents": {"count": 3}}]`). Cast option `via: "alt:<ref>"`. |
|
|
149
|
+
| [`flashback`](docs/reference/abilities.md#flashback) | 702.34a, 118.9, 118.6, 601.2b, 601.2f, 601.2h | Flashback: you may cast this instant or sorcery card from your graveyard by paying `cost` rather than its mana cost; then it's exiled whenever it would leave the stack. `cost` is a mana cost string or a list of costs (`[{"mana": "{1}{U}"}, {"tap_permanents": {"count": 3}}]`), or `"mana_cost"`: the card's own mana cost ("its flashback cost is equal to its mana cost", e.g. granted with `grant_ability`). Cast option `via: "alt:<ref>"`. |
|
|
141
150
|
| [`foretell`](docs/reference/abilities.md#foretell) | 702.143a, 702.143b, 702.143c, 116.2h, 406.3, 118.9, 601.2b, 601.2f, 601.2h | Foretell: during your turn, you may pay {2} and exile this card from your hand face down (special action `{type: "special_action"}`). After that turn you may cast it from exile by paying `cost` rather than its mana cost (cast option `via: "alt:<ref>"`). `{"cast_with": "foretell"}` reads it. |
|
|
142
151
|
| [`gift`](docs/reference/abilities.md#gift) | 702.174a, 702.174b, 702.174j, 702.174k, 702.174m, 601.2b | Gift: as you cast this spell you may promise a gift to an opponent you choose (the `choose_kicker` decision, then `choose_cost` for the opponent). `{"cast_with": "gift"}` holds if you did, and the selector "gift_recipient" is that player; write the gift as the spell's first effect (or an enters trigger) under that condition. |
|
|
143
152
|
| [`grants_beam_me_up`](docs/reference/abilities.md#grants_beam_me_up) | 702.196a, 702.196b, 604.1, 611.3a | While this permanent is on the battlefield, during your main phase each instant and sorcery card in your graveyard has beam me up with its mana cost as the beam me up cost; this permanent can't be the creature returned to cast a spell this way. Offered as a cast option with `via: "beam_granted:<permanent>:<ref>"`. |
|
|
144
153
|
| [`harmonize`](docs/reference/abilities.md#harmonize) | 702.180a, 702.180b, 118.9, 601.2b, 601.2f, 601.2h | Harmonize: you may cast this card from your graveyard by paying `cost` and tapping up to one untapped creature you control rather than its mana cost; the total cost is reduced by generic mana equal to that creature's power. Then it's exiled whenever it would leave the stack. The creature is a `choose_cost` decision (`{type: "cost"}` without an object taps none). Cast option `via: "alt:<ref>"`. |
|
|
145
|
-
| [`hexproof_from`](docs/reference/abilities.md#hexproof_from) | 702.11d, 702.11f, 702.11g, 115.4 | Hexproof from the quality: this permanent can't be the target of spells with the quality, or abilities from sources with it, that its controller's opponents control. The quality is a card spec (`{"colors": ["B"]}`, `{"types": ["instant"]}`, `{"color_count": {"equal": 1}}` for monocolored), or "its_colors" (hexproof from each of its colors: whatever shares a color with it). |
|
|
154
|
+
| [`hexproof_from`](docs/reference/abilities.md#hexproof_from) | 702.11d, 702.11f, 702.11g, 115.4, 607.2d | Hexproof from the quality: this permanent can't be the target of spells with the quality, or abilities from sources with it, that its controller's opponents control. The quality is a card spec (`{"colors": ["B"]}`, `{"types": ["instant"]}`, `{"color_count": {"equal": 1}}` for monocolored), or "its_colors" (hexproof from each of its colors: whatever shares a color with it), or "chosen_color" (the chosen color; granted by `become`, the color chosen as it resolved). |
|
|
146
155
|
| [`hideaway`](docs/reference/abilities.md#hideaway) | 702.75a, 406.3, 607.2a | Hideaway `amount`: when this permanent enters, look at the top N cards of your library, exile one face down (linked: "exiled_with") and put the rest on the bottom in a random order. |
|
|
156
|
+
| [`impending`](docs/reference/abilities.md#impending) | 702.176a, 118.9, 601.2b, 601.2f, 601.2h, 613.1d, 613.6, 122.6 | Impending `amount`—`cost`: you may cast this card by paying `cost` rather than its mana cost. If you do, it enters with `amount` time counters, and while its impending cost was paid and it has a time counter on it, it isn't a creature. At the beginning of your end step, remove a time counter from it (a triggered ability that comes with the keyword). Cast option `via: "alt:<ref>"`; `{"cast_with": "impending"}` reads it. |
|
|
157
|
+
| [`infinity`](docs/reference/abilities.md#infinity) | 702.186a, 702.186b, 701.64b | An Infinity card's "∞ — [ability]": one static, triggered or activated ability that works only while this permanent is harnessed. Condition `{"harnessed": true}` reads the designation. |
|
|
147
158
|
| [`kicker`](docs/reference/abilities.md#kicker) | 702.33a, 702.33d, 702.33g, 601.2b, 601.2f, 601.2h | Kicker: as you cast this spell you may also pay `cost` (mana and/or chosen costs such as `sacrifice_permanent`). The spell is then kicked: `{"kicked": true}` conditions hold and its `kicked_targets` are used. |
|
|
159
|
+
| [`life_gain_replacement`](docs/reference/abilities.md#life_gain_replacement) | 614.1a, 614.5, 616.1, 119.10 | While this permanent is on the battlefield, each time `player` (you (default) | opponent | any, relative to its controller) would gain life, instead: `multiply` (2 = "twice that much"), `plus` an amount ("that much life plus 1"), or `lose: true` ("that player loses that much life instead"). Each applies once to an event; the affected player's best order is used: losing instead first, then adding, then multiplying. Gaining 0 life is no event (nothing applies). |
|
|
148
160
|
| [`look_at_top`](docs/reference/abilities.md#look_at_top) | 401.5, 604.1 | While this permanent is on the battlefield, its controller sees the top card of their library (the `library_top` of their view). |
|
|
149
161
|
| [`loyalty`](docs/reference/abilities.md#loyalty) | 606.3, 606.4, 606.5, 602.2b | A loyalty ability. Its cost adds (positive) or removes (negative) loyalty counters and is paid on activation. Sorcery speed, and only one loyalty ability per planeswalker per turn. |
|
|
150
162
|
| [`mana`](docs/reference/abilities.md#mana) | 605.1a, 605.3a, 605.3b, 106.1a, 106.4, 106.6, 607.2d, 602.5b | An activated mana ability: pay the cost, add the mana to your mana pool immediately. It does not use the stack and can be activated whenever you have priority. `produce`: the fixed mana (`amount` times). Or `color`: `amount` mana (default 1) of one color you choose as you activate it (`"any_one"`) or in any combination of colors (`"any"`); `colors` limits the choice. `"chosen"`: of the color chosen as this entered (choose_color). `spend_only` restricts how the mana can be spent. `only_if`: "Activate only if ...". `limit: "once_each_turn"`: "Activate only once each turn." |
|
|
151
163
|
| [`max_speed`](docs/reference/abilities.md#max_speed) | 702.178a, 702.178b, 702.179e, 113.6c | While your speed is 4 (max speed), this object has `keywords` and `abilities` (any kind: activated, triggered, static, mana; an ability with a graveyard cost works from your graveyard). |
|
|
152
164
|
| [`may_not_untap`](docs/reference/abilities.md#may_not_untap) | 502.3, 604.1 | Its controller may choose not to untap it during their untap step (decision `untap_choice`, asked only while it's tapped). |
|
|
153
165
|
| [`mayhem`](docs/reference/abilities.md#mayhem) | 702.187a, 702.187b, 702.187c, 118.9, 601.2b, 601.2f, 601.2h, 305.1 | Mayhem: as long as you discarded this card this turn, you may cast it from your graveyard by paying `cost` rather than its mana cost. Without `cost` (`"mayhem"`), you may play it from your graveyard (a land too) if you discarded it this turn. Cast option `via: "alt:<ref>"`. |
|
|
166
|
+
| [`miracle`](docs/reference/abilities.md#miracle) | 702.94a, 702.94b, 608.2g, 118.9, 601.2b, 601.2f, 601.2h, 121.2 | Miracle `cost`: when you draw this card as the first card you drew this turn, it's revealed and a triggered ability lets you cast it as that ability resolves by paying `cost` rather than its mana cost (an `effect_choice`: cast or done), if it's still in your hand. Never offered at priority. `cards_have` with `zone: "hand"` can give it to cards in your hand. |
|
|
154
167
|
| [`mobilize`](docs/reference/abilities.md#mobilize) | 702.181a, 508.4 | Mobilize `amount`: whenever this creature attacks, create that many 1/1 red Warrior creature tokens tapped and attacking; sacrifice them at the beginning of the next end step. |
|
|
168
|
+
| [`morph`](docs/reference/abilities.md#morph) | 702.37a, 702.37c, 702.37d, 702.37e, 708.2, 708.4, 708.8, 116.2b | Morph: you may cast this card face down as a nameless colorless 2/2 creature spell by paying {3} rather than its mana cost (cast option `via: "alt:<ref>"`). Any time you have priority you may turn the face-down permanent face up by paying `cost` (special action `{type: "turn_face_up", via: "morph"}`); abilities about entering don't trigger then. |
|
|
169
|
+
| [`ninjutsu`](docs/reference/abilities.md#ninjutsu) | 702.49a, 702.49b, 702.49c, 509.1h, 506.3a, 113.6m, 602.2a | Ninjutsu: an activated ability from your hand: pay `cost`, reveal this card and return an unblocked attacking creature you control to its owner's hand (a `choose_cost` decision) to put this card onto the battlefield tapped and attacking what that creature was attacking. It isn't cast. Usable while you have an unblocked attacker (after blockers are declared). |
|
|
170
|
+
| [`offspring`](docs/reference/abilities.md#offspring) | 702.175a, 702.175b, 601.2b, 601.2f, 601.2h, 707.9b, 603.4 | Offspring: as you cast this spell you may also pay `cost` (announced with the `choose_kicker` decision; the spell isn't kicked). When the permanent enters, if its offspring cost was paid, create a 1/1 token copy of it (a triggered ability that comes with the keyword). `{"cast_with": "offspring"}` holds if it was paid. |
|
|
155
171
|
| [`play_from`](docs/reference/abilities.md#play_from) | 601.3, 113.6e, 113.6f, 305.1, 401.5, 122.1, 614.12, 400.11a, 400.11b, 108.3 | With `cards: "self"` (default): its owner may cast this card from `zone` (the ability functions there). With a card spec: while this permanent is on the battlefield, its controller may play their own matching cards from `zone`, or from any of `zones` ("outside": cards they own outside the game, the deck's `outside` list, CR 400.11a). `play`: "cast" (spells only, default) or "play" (lands too, using a land play). `once_each_turn`: once during each of your turns, one use shared by all its zones. `enters_with`: a permanent spell cast this way enters with these counters. Timing and costs are the usual ones. |
|
|
156
|
-
| [`player_rule`](docs/reference/abilities.md#player_rule) | 702.11c, 115.4, 508.1c, 402.2, 514.1, 615.1, 615.1a, 704.5a, 104.3b, 701.21a, 614.17b, 101.2, 601.3, 701.6a, 119.7, 602.5, 615.12, 702.16b, 702.16e, 702.16k, 604.1, 604.2, 611.3a | While this permanent is on the battlefield (and its `if` condition holds), `rule` applies to the players in `affects` (you | opponents | each; default you). Rules: hexproof, cant_attack, no_max_hand_size, prevent_all_damage, cant_lose_for_life, cant_sacrifice, cant_cast, cant_cast_except_from_hand, spells_cant_be_countered, abilities_cant_be_countered, cant_gain_life, cant_activate, damage_cant_be_prevented, combat_damage_cant_be_prevented, protection_from_opponents. `cant_sacrifice` takes a `filter` of the permanents that can't be sacrificed, `cant_activate` may take a `filter` of the sources whose abilities can't be activated (mana abilities still can), and `cant_cast` and `spells_cant_be_countered` may take a card spec of the `spells`. The damage rules apply to all damage whichever players they name. |
|
|
172
|
+
| [`player_rule`](docs/reference/abilities.md#player_rule) | 702.11c, 115.4, 508.1c, 402.2, 514.1, 615.1, 615.1a, 704.5a, 104.3b, 701.21a, 614.17b, 101.2, 601.3, 701.6a, 119.7, 602.5, 615.12, 702.16b, 702.16e, 702.16k, 506.3, 604.1, 604.2, 611.3a | While this permanent is on the battlefield (and its `if` condition holds), `rule` applies to the players in `affects` (you | opponents | each; default you). Rules: hexproof, cant_attack, no_max_hand_size, prevent_all_damage, cant_lose_for_life, cant_sacrifice, cant_cast, cant_cast_except_from_hand, spells_cant_be_countered, abilities_cant_be_countered, cant_gain_life, cant_activate, damage_cant_be_prevented, combat_damage_cant_be_prevented, protection_from_opponents, cant_be_attacked. `cant_sacrifice` takes a `filter` of the permanents that can't be sacrificed, `cant_activate` may take a `filter` of the sources whose abilities can't be activated (mana abilities still can) or `name: "chosen"` (sources with the name this permanent chose, in any zone), `cant_be_attacked` takes a `filter` of the creatures that can't attack them, and `cant_cast` and `spells_cant_be_countered` may take a card spec of the `spells`. The damage rules apply to all damage whichever players they name. |
|
|
157
173
|
| [`plot`](docs/reference/abilities.md#plot) | 702.170a, 702.170b, 702.170d, 116.2k | Plot `cost`: during your main phase, while the stack is empty, you may pay `cost` and exile this card from your hand (special action `{type: "special_action"}`). It becomes plotted: on a later turn you may cast it from exile without paying its mana cost, during your main phase while the stack is empty (cast option `via: "plotted"`). |
|
|
158
174
|
| [`prevent_damage`](docs/reference/abilities.md#prevent_damage) | 615.1, 615.1a, 615.5, 615.6 | While this permanent is on the battlefield, all damage from sources in `by` to recipients in `to` (damage scopes as in damage_replacement, both optional; `combat`: combat | noncombat) is prevented. "To and by this creature" is two of them. `then`: effects right after it prevents damage ("prevent that damage and put that many +1/+1 counters on him"), reading {"triggering": "amount"} (the damage prevented), "object" (the source) and "player" (its controller). |
|
|
159
175
|
| [`protection_from`](docs/reference/abilities.md#protection_from) | 702.16a, 702.16b, 702.16c, 702.16d, 702.16e, 702.16f, 702.16g, 702.16h, 702.16i, 702.16j, 702.16k, 704.5m, 704.5n | Protection from the quality (a card spec, "everything", "each_opponent": from each of your opponents, or "its_colors"): damage from sources with the quality is prevented, and this permanent can't be enchanted or equipped by, blocked by or targeted by anything with the quality (Auras and Equipment already attached fall off as a state-based action). |
|
|
160
176
|
| [`saddle`](docs/reference/abilities.md#saddle) | 702.171a, 702.171b, 702.171c | Saddle N: tap any number of other untapped creatures you control with total power N or more (chosen one at a time; `done` once the total is enough): this permanent becomes saddled until end of turn. Activate only as a sorcery. |
|
|
161
177
|
| [`sneak`](docs/reference/abilities.md#sneak) | 702.190a, 702.190b, 506.3a, 118.9, 601.2b, 601.2f, 601.2h | Sneak: any time you could cast an instant during your declare blockers step, you may cast this spell by paying `cost` and returning an unblocked attacking creature you control to its owner's hand rather than its mana cost. A permanent spell cast this way enters tapped and attacking what that creature was attacking. Cast option `via: "alt:<ref>"`. |
|
|
178
|
+
| [`solved`](docs/reference/abilities.md#solved) | 702.169a, 702.169b, 702.169c, 702.169d, 720.3b, 720.3c | A Case's "Solved — [ability]": one static, triggered or activated ability that works only while this permanent is solved (a static applies as long as it's solved, a triggered ability triggers only if it's solved, an activated ability can be activated only if it's solved). Condition `{"solved": true}` reads the designation. |
|
|
162
179
|
| [`spell`](docs/reference/abilities.md#spell) | 113.3a, 601.2c, 608.2b, 608.2c, 702.183a, 601.2f | The spell ability of an instant or sorcery: its targets are chosen while casting and its effects happen in order when it resolves. If every target is illegal on resolution, it doesn't resolve. A mode of a modal spell may have a `cost`: a mana cost paid in addition when that mode is chosen (tiered: "Choose one additional cost"). |
|
|
163
180
|
| [`spell_keywords`](docs/reference/abilities.md#spell_keywords) | 604.1, 611.3a, 702.85a | Spells you control on the stack matching `spells` (a spell filter; default every spell), cast `from` / `not_from` a zone if given, have the `keywords` (e.g. cascade, which then triggers as such a spell is cast). |
|
|
164
181
|
| [`spells_have`](docs/reference/abilities.md#spells_have) | 702.126a, 702.51a, 611.3a, 604.1 | Spells you cast matching the card spec `spells` (default: every spell) have `keywords` (convoke and/or improvise) while this permanent is on the battlefield. |
|
|
165
|
-
| [`static`](docs/reference/abilities.md#static) | 604.1, 604.2, 611.3a, 612.8, 613.1c, 613.1d, 613.1e, 613.1f, 613.4b, 613.4c, 613.7a, 613.8a, 205.1a, 205.1b, 301.5f, 303.4m | While its source is on the battlefield (and its `if` condition holds), every permanent it `affects` gets `pump` (fixed or computed amounts, layer 7c), the `keywords` and granted `abilities` (layer 6, triggered, activated or mana abilities), and with `creature_types` has exactly those creature types (layer 4); `loses_abilities: true` removes the abilities it had before (layer 6, in timestamp order: later grants and keyword counters stay, CR 613.7), `colors` sets its colors (layer 5) and `base_power_toughness` its base power and toughness (layer 7b); `types` are card types it has in addition to its other types ("this Vehicle is an artifact creature", layer 4) and `subtypes` subtypes it has in addition to its other types ("is a Wizard in addition to its other types", layer 4). `affects` is {"each": filter, "controller": you|opponent|any, "other": true} (relative to the source's controller), "self", or "attached" ("equipped/enchanted creature"). |
|
|
182
|
+
| [`static`](docs/reference/abilities.md#static) | 604.1, 604.2, 611.3a, 506.4, 612.8, 613.1c, 613.1d, 613.1e, 613.1f, 613.4b, 613.4c, 613.7a, 613.8a, 205.1a, 205.1b, 301.5f, 303.4m | While its source is on the battlefield (and its `if` condition holds), every permanent it `affects` gets `pump` (fixed or computed amounts, layer 7c), the `keywords` and granted `abilities` (layer 6, triggered, activated or mana abilities), and with `creature_types` has exactly those creature types (layer 4); `loses_abilities: true` removes the abilities it had before (layer 6, in timestamp order: later grants and keyword counters stay, CR 613.7), `colors` sets its colors (layer 5) and `base_power_toughness` its base power and toughness (layer 7b); `types` are card types it has in addition to its other types ("this Vehicle is an artifact creature", layer 4) and `subtypes` subtypes it has in addition to its other types ("is a Wizard in addition to its other types", layer 4). `affects` is {"each": filter, "controller": you|opponent|any, "other": true} (relative to the source's controller), "self", or "attached" ("equipped/enchanted creature"). The filter and the `if` condition may read combat and tapped status ("attacking creatures you control have first strike", {"if": {"attacking": "attached"}}), never power or toughness. |
|
|
166
183
|
| [`station_symbol`](docs/reference/abilities.md#station_symbol) | 722.2a, 722.2b, 722.2c, 613.1d, 613.4b | While this permanent has at least `at` charge counters it has `keywords` and `abilities`; with `power`/`toughness` it is also a creature with that base power and toughness (layers 4 and 7b). |
|
|
167
184
|
| [`suspend`](docs/reference/abilities.md#suspend) | 702.62a, 702.62c, 116.2f | Suspend `amount`—`cost`: whenever you could begin to cast this card from your hand, you may pay `cost` and exile it with `amount` time counters (special action `{type: "special_action"}`); then it works as the keyword `suspend`. |
|
|
168
185
|
| [`tapping_power`](docs/reference/abilities.md#tapping_power) | 702.122a, 702.171a, 702.184a, 702.184c | When this creature is tapped to pay the cost of the abilities in `for` (crew, saddle, station), it counts its `use` (power, default; toughness; toughness_if_greater: its toughness when that's greater than its power) plus `plus`. Several of them add up their `plus`. A `static` can grant it. |
|
|
169
186
|
| [`teamwork`](docs/reference/abilities.md#teamwork) | 702.194a, 702.194b, 702.194c, 601.2b, 601.2f, 601.2h | Teamwork N: as you cast this spell you may also tap any number of untapped creatures you control with total power N or more (the `choose_kicker` decision, then one `choose_cost` per creature). `{"cast_with": "teamwork"}` holds if you did; `kicked_targets` are its targets then. |
|
|
187
|
+
| [`to_solve`](docs/reference/abilities.md#to_solve) | 720.3a, 720.3b, 603.4 | A Case's "To solve — [condition]": at the beginning of your end step, if the condition holds and this Case isn't solved, it becomes solved (an intervening-if triggered ability). The parameter is the condition itself. |
|
|
170
188
|
| [`token_replacement`](docs/reference/abilities.md#token_replacement) | 614.1a, 614.16, 111.1, 616.1 | If tokens would be created under this permanent's controller's control, that many `token` tokens are created instead (tapped or attacking if the originals would be). `token` is a predefined token name or inline card data. |
|
|
171
189
|
| [`triggered`](docs/reference/abilities.md#triggered) | 603.2, 603.3, 603.3b, 603.3d | A triggered ability: when its trigger condition happens, it is put on the stack the next time a player would receive priority (in APNAP order), with targets chosen then. |
|
|
172
190
|
| [`ward`](docs/reference/abilities.md#ward) | 702.21a, 601.2c, 603.2, 701.6a, 701.67a | Ward: whenever this permanent becomes the target of a spell or ability an opponent controls, counter that spell or ability unless its controller pays `cost`: a mana cost, or a list of costs ("Ward—Pay 2 life", "Ward—Discard a card or pay {2}" with `one_of`). With `waterbend`, they waterbend that cost: "Ward—Waterbend {4}". |
|
|
173
|
-
| [`warp`](docs/reference/abilities.md#warp) | 702.185a, 702.185b, 702.185c, 603.7, 118.9, 601.2b, 601.2f, 601.2h | Warp: you may cast this card from your hand by paying `cost` rather than its mana cost. If you do, the permanent it becomes is exiled at the beginning of the next end step (a delayed triggered ability), and its owner may cast it from exile after this turn has ended for as long as it remains exiled (cast option `via: "warped"`). Conditions `{"cast_with": "warp"}` and `{"cast_with_this_turn": "warp"}` read it. |
|
|
191
|
+
| [`warp`](docs/reference/abilities.md#warp) | 702.185a, 702.185b, 702.185c, 603.7, 118.9, 601.2b, 601.2f, 601.2h, 601.3 | Warp: you may cast this card from your hand by paying `cost` rather than its mana cost. If you do, the permanent it becomes is exiled at the beginning of the next end step (a delayed triggered ability), and its owner may cast it from exile after this turn has ended for as long as it remains exiled (cast option `via: "warped"`). Conditions `{"cast_with": "warp"}` and `{"cast_with_this_turn": "warp"}` read it. `from: ["hand", "graveyard"]`: "you may cast this card from your graveyard using its warp ability" (CR 601.3). |
|
|
174
192
|
| [`web_slinging`](docs/reference/abilities.md#web_slinging) | 702.188a, 118.9, 601.2b, 601.2f, 601.2h | Web-slinging: you may cast this spell by paying `cost` and returning a tapped creature you control to its owner's hand rather than its mana cost. The creature is a `choose_cost` decision, returned as the spell becomes cast. Cast option `via: "alt:<ref>"`. |
|
|
175
193
|
|
|
176
194
|
## Trigger conditions
|
|
@@ -181,29 +199,31 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
181
199
|
| [`activates_ability`](docs/reference/triggers.md#activates_ability) | 602.2, 605.1a, 603.2, 201.4, 702.177a, 702.142b, 606.1 | A player (`controller`: you (default) | opponent | any) activates an ability that isn't a mana ability. `source`: optional filter on the source's card; `name: "chosen"`: only a source with the name chosen as this permanent entered. `exhaust: true`: only an exhaust ability ("whenever you activate an exhaust ability", CR 702.177). `boast: true`: only a boast ability ("whenever a creature you control boasts", CR 702.142b). `loyalty: true`: only a loyalty ability (CR 606). |
|
|
182
200
|
| [`airbends`](docs/reference/triggers.md#airbends) | 701.65b | A player (`controller`: you (default) | opponent | any) airbends. |
|
|
183
201
|
| [`any_of`](docs/reference/triggers.md#any_of) | 603.2, 603.2c | Triggers when any of the listed trigger conditions is met. |
|
|
184
|
-
| [`attacks`](docs/reference/triggers.md#attacks) | 508.3a, 603.2 | The subject is declared as an attacker. `first_time_this_turn: true`: only the first time that creature attacks this turn (later combats of the turn don't trigger it). |
|
|
202
|
+
| [`attacks`](docs/reference/triggers.md#attacks) | 508.3a, 603.2, 506.5 | The subject is declared as an attacker. `first_time_this_turn: true`: only the first time that creature attacks this turn (later combats of the turn don't trigger it). `alone: true`: only when it is the only creature declared as an attacker (it triggers as the declaration is complete). |
|
|
185
203
|
| [`becomes_blocked`](docs/reference/triggers.md#becomes_blocked) | 509.3c, 509.1h, 603.2e | The subject becomes blocked: once per combat when blockers are declared, even if several creatures block it. |
|
|
186
204
|
| [`becomes_crewed`](docs/reference/triggers.md#becomes_crewed) | 702.122e, 603.2 | A crew ability of the subject resolves (it becomes crewed). |
|
|
187
205
|
| [`becomes_level`](docs/reference/triggers.md#becomes_level) | 717.2a, 603.2 | This permanent's level becomes `level` (a class level bar's ability resolves). |
|
|
188
206
|
| [`becomes_saddled`](docs/reference/triggers.md#becomes_saddled) | 702.171b, 603.2 | The subject becomes saddled (its saddle ability resolved, or an effect saddled it). |
|
|
189
207
|
| [`becomes_tapped`](docs/reference/triggers.md#becomes_tapped) | 603.2e, 701.26a, 702.194a | The subject becomes tapped (for any reason: a cost, attacking, an effect). A permanent that enters tapped doesn't become tapped. `for: "teamwork"`: only when it's tapped to pay a teamwork cost (it triggers once the spell is cast). |
|
|
190
|
-
| [`becomes_target`](docs/reference/triggers.md#becomes_target) | 115.1, 601.2c, 603.2, 603.2c | The subject becomes the target of a spell or ability (controlled by `by`: opponent | you | any (default), relative to the source's controller). One trigger per matching object targeted. |
|
|
208
|
+
| [`becomes_target`](docs/reference/triggers.md#becomes_target) | 115.1, 115.7, 601.2c, 603.2, 603.2c, 707.10 | The subject becomes the target of a spell or ability (controlled by `by`: opponent | you | any (default), relative to the source's controller). One trigger per matching object targeted. |
|
|
191
209
|
| [`becomes_untapped`](docs/reference/triggers.md#becomes_untapped) | 603.2e, 701.26b | The subject becomes untapped (in the untap step or by an effect). A permanent that enters untapped doesn't become untapped. |
|
|
192
210
|
| [`blocks`](docs/reference/triggers.md#blocks) | 509.3a, 509.3b, 509.3f, 603.2 | The subject is declared as a blocker. With `blocking`, only when the attacking creature it blocks matches that filter ("blocks a creature with flying"). {"triggering": "object"} is the blocking creature. |
|
|
193
|
-
| [`cast`](docs/reference/triggers.md#cast) | 603.2, 601.2i, 113.6, 202.3e, 201.4, 607.2, 115.1, 601.2a, 601.2c | A player casts a spell. `controller`: you (default) | opponent | any; `spell`: creature | noncreature | instant_or_sorcery, or any spell filter, e.g. {"spell": {"subtypes": ["saga"]}} or {"one_of": [...]} for "creature or Spacecraft spell"; `name` / `mana_value`: "chosen" (the source's as-it-entered choice); `self: true`: "when you cast this spell" (it functions on the stack). `targets`: only a spell that targets something matching this filter ("self": this permanent), e.g. {"creature": {"controller": "you"}}. `from` / `not_from`: only a spell cast from (not from) that zone: hand | graveyard | exile | library | outside. `single_target: true`: only a spell with exactly one target. |
|
|
194
|
-
| [`
|
|
211
|
+
| [`cast`](docs/reference/triggers.md#cast) | 603.2, 601.2i, 113.6, 202.3e, 201.4, 607.2, 115.1, 601.2a, 601.2c, 108.3 | A player casts a spell. `controller`: you (default) | opponent | any; `spell`: creature | noncreature | instant_or_sorcery, or any spell filter, e.g. {"spell": {"subtypes": ["saga"]}} or {"one_of": [...]} for "creature or Spacecraft spell"; `name` / `mana_value`: "chosen" (the source's as-it-entered choice); `self: true`: "when you cast this spell" (it functions on the stack). `targets`: only a spell that targets something matching this filter ("self": this permanent), e.g. {"creature": {"controller": "you"}}. `from` / `not_from`: only a spell cast from (not from) that zone: hand | graveyard | exile | library | outside. `single_target: true`: only a spell with exactly one target. `owner`: "not_you" only a spell you don't own, "you" only one you own. |
|
|
212
|
+
| [`commits_crime`](docs/reference/triggers.md#commits_crime) | 700.13, 603.2 | A player commits a crime: they cast a spell, activate an ability or put a triggered ability on the stack that targets an opponent, a permanent, spell or ability an opponent controls, or a card in an opponent's graveyard (once per spell or ability). `controller`: you (default) | opponent | any. {"triggering": "object"} is that spell or ability. Amount `{"crimes_this_turn": player}` counts them. |
|
|
213
|
+
| [`counters_placed`](docs/reference/triggers.md#counters_placed) | 122.6, 603.2, 603.2c | One or more counters (only `counter`, if given) are put on the subject, including the counters it enters the battlefield with. Triggers once per event, however many counters. `nth` (needs `counter`): only when the Nth such counter is put on it (the event that takes it from fewer than N to N or more). |
|
|
195
214
|
| [`crews_vehicle`](docs/reference/triggers.md#crews_vehicle) | 702.122b, 603.2 | The subject (a creature) crews a Vehicle: it's tapped to pay that Vehicle's crew cost. {"triggering": "object"} is the Vehicle. |
|
|
196
|
-
| [`cycles`](docs/reference/triggers.md#cycles) | 702.29a, 702.29e | A player (`controller`: you (default) | opponent | any) cycles a card (activates its cycling or typecycling ability; optional `card` filter). |
|
|
197
|
-
| [`deals_damage`](docs/reference/triggers.md#deals_damage) | 510.2, 603.2, 603.2c, 120.2a, 120.2b, 120.3 | The subject deals damage. `combat: true` only counts combat damage, `noncombat: true` only noncombat damage; `to`: player | opponent (
|
|
215
|
+
| [`cycles`](docs/reference/triggers.md#cycles) | 702.29a, 702.29c, 702.29e, 113.6k | A player (`controller`: you (default) | opponent | any) cycles a card (activates its cycling or typecycling ability; optional `card` filter). `self: true`: "when you cycle this card", an ability of the card with `zone: "graveyard"` (where the cycled card is); its X is the cycling ability's X. |
|
|
216
|
+
| [`deals_damage`](docs/reference/triggers.md#deals_damage) | 510.2, 603.2, 603.2c, 120.2a, 120.2b, 120.3 | The subject deals damage. `combat: true` only counts combat damage, `noncombat: true` only noncombat damage; `to`: player | opponent | you (players, relative to the source's controller) | creature | planeswalker | battle | permanent | any (default), or a list of them ("a player or planeswalker"). Triggers once per damage event (each combat damage step is one, so double strike can trigger twice). `batched: true`: "one or more ... deal damage", once per event batch (a combat damage step); then {"triggering": "objects"} are the sources that dealt it and {"triggering": "amount"} the number of damage events. |
|
|
198
217
|
| [`dealt_damage`](docs/reference/triggers.md#dealt_damage) | 120.3, 603.2, 603.2c, 120.2a, 120.2b | Damage is dealt to the `subject` (a permanent: "self" by default, "attached" or {"each": filter, ...}) or, with `player` (you | opponent | any), to a player. `combat` / `noncombat`: only that damage. {"triggering": "object"} is the permanent dealt damage, {"triggering": "player"} the player, {"triggering": "amount"} how much. `batched: true`: "one or more ..." (once per damage event, CR 603.2c). |
|
|
199
|
-
| [`dies`](docs/reference/triggers.md#dies) | 603.6c, 603.10a, 700.4 | The subject is put into a graveyard from the battlefield. Looks back in time (CR 603.10a). |
|
|
218
|
+
| [`dies`](docs/reference/triggers.md#dies) | 603.6c, 603.10a, 700.4, 603.2c | The subject is put into a graveyard from the battlefield. Looks back in time (CR 603.10a). `batched: true`: "whenever one or more ... die", once per event batch (creatures dying at the same time, e.g. to lethal combat damage); {"triggering": "objects"} are the cards put into graveyards and {"triggering": "amount"} how many. |
|
|
200
219
|
| [`discards`](docs/reference/triggers.md#discards) | 701.9a, 603.2c, 702.29d | A player (`controller`: you (default) | opponent | any) discards a card (optional `card` filter). `batched: true`: "one or more cards", once per event batch; then "that many" is how many were discarded. |
|
|
201
220
|
| [`draws`](docs/reference/triggers.md#draws) | 121.1, 121.2 | A player draws a card; triggers once per card (draws happen one at a time). `controller`: you (default) | opponent | any. |
|
|
202
221
|
| [`earthbends`](docs/reference/triggers.md#earthbends) | 701.66b | A player (`controller`: you (default) | opponent | any) earthbends. |
|
|
203
|
-
| [`enters`](docs/reference/triggers.md#enters) | 603.6a, 603.2, 614.12 | The subject enters the battlefield. `untapped: true`: only if it entered untapped. `from`: only if it entered from that zone ("enters from exile"). |
|
|
222
|
+
| [`enters`](docs/reference/triggers.md#enters) | 603.6a, 603.2, 603.2c, 614.12 | The subject enters the battlefield. `untapped: true`: only if it entered untapped. `from`: only if it entered from that zone ("enters from exile"). `batched: true`: "whenever one or more ... enter", once per event batch; {"triggering": "objects"} are the permanents that entered and {"triggering": "amount"} how many. |
|
|
204
223
|
| [`faces_dilemma`](docs/reference/triggers.md#faces_dilemma) | 700.17, 700.2, 601.2b, 603.3c | A player faces a dilemma: they chose one or more modes for a spell or ability (cast, activated, or a triggered ability put on the stack). `controller`: you (default) | opponent | any. CR 700.17. |
|
|
205
224
|
| [`firebends`](docs/reference/triggers.md#firebends) | 702.189b | A player (`controller`: you (default) | opponent | any) firebends. |
|
|
206
225
|
| [`gains_life`](docs/reference/triggers.md#gains_life) | 119.9, 120.3f | A player gains life (once per life gain event; lifelink combat damage is one event per source). `controller`: you (default) | opponent | any. |
|
|
226
|
+
| [`gives_gift`](docs/reference/triggers.md#gives_gift) | 702.174c, 702.174b | A player (`controller`: you (default) | opponent | any) gives a gift: an instant or sorcery spell they control whose gift was promised resolves, or the gift triggered ability (an enters trigger under `{"cast_with": "gift"}`) of a permanent they control resolves. |
|
|
207
227
|
| [`leaves_battlefield`](docs/reference/triggers.md#leaves_battlefield) | 603.6c, 603.10a, 400.7 | The subject leaves the battlefield (for any zone, or only `to` that zone). Looks back in time: the permanent is matched as it last existed (types, controller, counters). |
|
|
208
228
|
| [`leaves_graveyard`](docs/reference/triggers.md#leaves_graveyard) | 603.10a, 603.2c, 404.1 | A card leaves a graveyard (whose: `controller` you (default) | opponent | any). Optional `card` filter on its card types. `batched: true` is "one or more cards leave": once per event that moves cards (one effect, cost or action), however many cards. |
|
|
209
229
|
| [`loses_life`](docs/reference/triggers.md#loses_life) | 119.3, 120.3a | A player loses life (damage to a player is life loss, CR 120.3a). `controller`: you (default) | opponent | any. |
|
|
@@ -216,6 +236,8 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
216
236
|
| [`step_begins`](docs/reference/triggers.md#step_begins) | 603.6b, 503.1a, 513.1a | A step begins. `whose`: "your" (default), "each" or "opponent". |
|
|
217
237
|
| [`surveils`](docs/reference/triggers.md#surveils) | 701.25a, 701.25c, 701.25d | A player (`controller`: you (default) | opponent | any) surveils (not surveil 0). Triggers after the surveil is complete. |
|
|
218
238
|
| [`transforms`](docs/reference/triggers.md#transforms) | 701.27f, 603.2 | The subject transforms. For the default subject (this permanent), the ability is on the face that's up afterward, so it means "whenever this transforms into [this face]". |
|
|
239
|
+
| [`turned_face_up`](docs/reference/triggers.md#turned_face_up) | 708.8, 702.37e, 702.168d, 603.2 | The subject (default this permanent) is turned face up. On a card with morph, disguise or that can be manifested, it's "when this creature is turned face up". |
|
|
240
|
+
| [`unlocks_door`](docs/reference/triggers.md#unlocks_door) | 709.5h, 709.5i, 709.5j, 603.2 | A Room permanent (the subject, default this one) gets an unlocked designation. On a Room's door, `{}` means "when you unlock this door". `door`: left | right | any; `fully: true`: only when it now has both doors unlocked ("whenever you fully unlock a Room"). |
|
|
219
241
|
| [`waterbends`](docs/reference/triggers.md#waterbends) | 701.67c | A player (`controller`: you (default) | opponent | any) waterbends. |
|
|
220
242
|
|
|
221
243
|
## Costs
|
|
@@ -225,21 +247,24 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
225
247
|
| [`behold`](docs/reference/costs.md#behold) | 701.4a, 701.4b, 601.2h, 602.2b, 118.3, 607.2a | Behold `count` (default 1) objects matching the card spec `card`: each a card revealed from your hand or a permanent you control, chosen while casting or activating. `exile: true` also exiles them as it becomes cast; they are then "exiled with" it (selector `exiled_with`). |
|
|
226
248
|
| [`blight`](docs/reference/costs.md#blight) | 701.68a, 701.68b, 601.2h, 602.2b, 118.3 | Blight `amount`: put that many -1/-1 counters on a creature you control, chosen while casting or activating and put on it as it becomes cast. |
|
|
227
249
|
| [`bottom_self_from_graveyard`](docs/reference/costs.md#bottom_self_from_graveyard) | 401.1, 113.6m, 602.2b, 118.3 | Put this card from your graveyard on the bottom of your library. An ability with this cost is activated from your graveyard. |
|
|
250
|
+
| [`choose_creature_type`](docs/reference/costs.md#choose_creature_type) | 601.2b, 205.3m, 607.2d | Choose a creature type as part of the cost (a `choose_cost` decision with options `{type: "cost", creature_type: t}`). The spell remembers it as its chosen type: later costs and its effects read it with `"subtypes": "chosen"`. |
|
|
251
|
+
| [`collect_evidence`](docs/reference/costs.md#collect_evidence) | 701.59a, 701.59b, 701.59c, 202.3, 601.2h, 118.3 | Collect evidence `N`: exile any number of other cards from your graveyard with total mana value N or greater, chosen one at a time (`choose_cost`; `done` once they total N). Not payable without that much mana value in your graveyard. "If evidence was collected": make it an optional `additional_cost` and read `{"cast_with": "additional_cost"}`. |
|
|
228
252
|
| [`discard`](docs/reference/costs.md#discard) | 701.9a, 701.9b, 601.2h, 602.2b, 118.3 | Discard `count` cards (default 1) from your hand, never this card, matching the card spec `card` if given: chosen while casting or activating and discarded as the spell or ability becomes cast. `random: true` discards them at random instead. |
|
|
229
253
|
| [`discard_self`](docs/reference/costs.md#discard_self) | 701.9a, 602.2b, 113.6m, 118.3 | Discard the card the ability belongs to (it goes from your hand to your graveyard). An ability with this cost is activated from your hand. |
|
|
230
254
|
| [`exert`](docs/reference/costs.md#exert) | 701.43a, 701.43b, 701.43c | Exert this permanent: it doesn't untap during your next untap step. |
|
|
231
255
|
| [`exile_from_graveyard`](docs/reference/costs.md#exile_from_graveyard) | 406.1, 601.2h, 602.2b, 118.3 | Exile `count` cards from your graveyard (default 1), never this card, chosen while casting or activating and exiled as the spell or ability becomes cast. `card` (a card spec) restricts which. |
|
|
232
256
|
| [`exile_from_hand`](docs/reference/costs.md#exile_from_hand) | 406.1, 601.2h, 602.2b, 118.3 | Exile `count` cards from your hand (default 1), chosen while casting or activating, exiled as the spell or ability becomes cast. `card` (a card spec) restricts which. |
|
|
257
|
+
| [`exile_permanent`](docs/reference/costs.md#exile_permanent) | 406.1, 601.2h, 602.2b, 118.3, 608.2h | Exile `count` permanents you control matching `filter` (`other: true`: not the source). Chosen while casting or activating, exiled as it becomes cast; the exiled cards are `exiled_for_cost`, and their last known power, toughness and mana value are amount `sacrificed`. |
|
|
233
258
|
| [`exile_self`](docs/reference/costs.md#exile_self) | 406.1, 602.2b, 118.3 | Exile the permanent the ability belongs to ("Exile this enchantment: ..."). |
|
|
234
259
|
| [`exile_self_from_graveyard`](docs/reference/costs.md#exile_self_from_graveyard) | 406.1, 113.6m, 602.2b, 118.3 | Exile this card from your graveyard. An ability with this cost is activated from your graveyard. |
|
|
235
260
|
| [`get_counters`](docs/reference/costs.md#get_counters) | 118.1, 122.1, 704.5c | You get `amount` counters of the kind `counter` (e.g. poison). It can always be paid. |
|
|
236
261
|
| [`mana`](docs/reference/costs.md#mana) | 601.2g, 601.2h, 602.2b | Pay mana as part of an activation. Paid during the activation by spending mana from your pool, tapping sources one at a time. |
|
|
237
262
|
| [`one_of`](docs/reference/costs.md#one_of) | 118.3, 601.2b, 601.2f, 602.2b, 118.12 | Pay one of the listed costs (two or more), chosen as the spell or ability is cast or activated (the `choose_cost_option` decision) or, for `pay` and ward, as it is paid. A cost that can't be paid can't be chosen. |
|
|
238
|
-
| [`pay_life`](docs/reference/costs.md#pay_life) | 119.4, 119.4b, 118.3b, 601.2b, 107.3a | Pay that much life (you lose it). Only possible while your life total is at least that much. `"X"` pays the X announced for the spell or ability (at most your life total); it may be a spell's additional cost. |
|
|
239
|
-
| [`remove_counters`](docs/reference/costs.md#remove_counters) | 602.2b, 601.2h, 118.3, 122.1 | Remove `count` counters (of kind `counter`, or any kind) from among permanents you control matching `filter` (default creature), one counter per choice. Removed as it becomes cast. |
|
|
263
|
+
| [`pay_life`](docs/reference/costs.md#pay_life) | 119.4, 119.4b, 118.3b, 601.2b, 107.3a, 702.21a | Pay that much life (you lose it). Only possible while your life total is at least that much. `"X"` pays the X announced for the spell or ability (at most your life total); it may be a spell's additional cost. An amount (e.g. {"power": "self"}, "pay life equal to its power") is computed as the cost is paid. |
|
|
264
|
+
| [`remove_counters`](docs/reference/costs.md#remove_counters) | 602.2b, 601.2h, 118.3, 122.1 | Remove `count` counters (of kind `counter`, or any kind) from among permanents you control matching `filter` (default creature), one counter per choice. Removed as it becomes cast. `self: true`: only from this permanent ("Remove two counters from Ghost-Spider"). |
|
|
240
265
|
| [`sacrifice`](docs/reference/costs.md#sacrifice) | 701.21a, 602.2b, 118.3 | Sacrifice the permanent the ability belongs to (it goes to its owner's graveyard). |
|
|
241
266
|
| [`sacrifice_permanent`](docs/reference/costs.md#sacrifice_permanent) | 701.21a, 601.2h, 602.2b, 118.3, 608.2h | Sacrifice `count` permanents you control matching `filter` (`other: true`: not the source). Chosen while casting or activating, sacrificed as it becomes cast; the sacrificed permanent's last known types and subtypes are remembered (condition `sacrificed`), and its power, toughness and mana value (amount `sacrificed`). |
|
|
242
|
-
| [`tap`](docs/reference/costs.md#tap) | 107.5, 602.5a | {T} — tap the permanent the ability belongs to. Requires it to be untapped. |
|
|
267
|
+
| [`tap`](docs/reference/costs.md#tap) | 107.5, 602.5a, 602.2b, 607.1a, 302.6 | {T} — tap the permanent the ability belongs to. Requires it to be untapped. `{"tap": "granter"}` instead taps the permanent whose static ability granted this ability ("Tap Fishing Pole"; not {T}, so summoning sickness doesn't matter). |
|
|
243
268
|
| [`tap_another_creature`](docs/reference/costs.md#tap_another_creature) | 702.184a, 601.2h, 602.2b, 302.6 | Tap another untapped creature you control, chosen while activating. A creature that came under your control this turn can be tapped this way. |
|
|
244
269
|
| [`tap_permanents`](docs/reference/costs.md#tap_permanents) | 601.2h, 602.2b, 302.6, 118.3 | Tap `count` untapped permanents you control matching `filter` (default: creature), chosen while casting or activating; `other: true` excludes the source. They are tapped as they are chosen; cancelling untaps them. |
|
|
245
270
|
| [`waterbend`](docs/reference/costs.md#waterbend) | 701.67a, 701.67b, 701.67c | Waterbend [cost]: pay this mana cost; for each generic mana in it you may instead tap an untapped artifact or creature you control (pay_cost option `{type: "waterbend", object: id}`). Only the waterbend cost's own generic mana can be paid this way. |
|
|
@@ -264,14 +289,17 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
264
289
|
| [`behold`](docs/reference/effects.md#behold) | 701.4a, 701.4b, 118.3 | You behold an object matching the card spec `card`: reveal such a card from your hand or choose such a permanent you control. Under `may`, "yes" is offered only when there is one. |
|
|
265
290
|
| [`bite`](docs/reference/effects.md#bite) | 120.3, 120.4, 608.2b | Each creature referenced by `from` deals damage equal to its power to each creature, planeswalker or player referenced by `to` (one damage event per source; not combat damage, and nothing is dealt back). |
|
|
266
291
|
| [`blight`](docs/reference/effects.md#blight) | 701.68a, 701.68b, 701.68c | Each referenced player (default: you) blights `amount`: puts that many -1/-1 counters on a creature they control, chosen as it resolves (one `effect_choice` each, in turn order). The blighted creatures are its results. |
|
|
267
|
-
| [`cast`](docs/reference/effects.md#cast) | 608.2g, 707.12, 707.12a, 601.2a, 601.2f | The controller may cast referenced cards (or card copies) now, while this resolves, paying their costs; timing restrictions don't apply. `to`, `for`, `not_types`, `max_mana_value`, `count`, `exile_instead` and `any_mana_type` work as for `cast_free
|
|
268
|
-
| [`cast_free`](docs/reference/effects.md#cast_free) | 608.2g, 118.9, 601.2a, 107.3b, 118.6a, 305.2a, 305.3, 406.3a | The controller may cast referenced cards without paying their mana costs while this resolves. `to` names the cards ({"result": n}), or a player for the cards in their hand (default: your hand). Only cards matching `for`/`not_types` with mana value up to `max_mana_value` (optional amount) that could be cast now (legal targets). `count`: 1 (default) or "any" (any number, one at a time). X is 0 (CR 107.3b). `play: true` ("you may play"): a land among them may be played, on your turn with a land play left (`{type: "play_land"}`). A face-down card is judged face up. |
|
|
292
|
+
| [`cast`](docs/reference/effects.md#cast) | 608.2g, 707.12, 707.12a, 601.2a, 601.2f | The controller may cast referenced cards (or card copies) now, while this resolves, paying their costs; timing restrictions don't apply. `to`, `from`, `for`, `not_types`, `max_mana_value`, `count`, `exile_instead` and `any_mana_type` work as for `cast_free` ("you may cast an artifact spell from your graveyard": `from: "graveyard"`). |
|
|
293
|
+
| [`cast_free`](docs/reference/effects.md#cast_free) | 608.2g, 118.9, 601.2a, 107.3b, 118.6a, 305.2a, 305.3, 406.3a | The controller may cast referenced cards without paying their mana costs while this resolves. `to` names the cards ({"result": n}), or a player for the cards in their hand (default: your hand), or in the zone `from` (hand | graveyard). Only cards matching `for`/`not_types` with mana value up to `max_mana_value` (optional amount) that could be cast now (legal targets). `count`: 1 (default), up to N (an integer), or "any" (any number, one at a time). X is 0 (CR 107.3b). `play: true` ("you may play"): a land among them may be played, on your turn with a land play left (`{type: "play_land"}`). A face-down card is judged face up. |
|
|
294
|
+
| [`change_target`](docs/reference/effects.md#change_target) | 115.7, 115.7a, 115.7e | Change the target(s) of each spell or ability on the stack `of` refers to: each target becomes another legal target you choose for that spell; if one can't, none change. |
|
|
295
|
+
| [`choose_card_name`](docs/reference/effects.md#choose_card_name) | 201.4, 607.2d, 608.2c | The player (`to`, default you) chooses a card name among the cards in the game (`types`: the named card has one of these; `not`: it has none of these); "the chosen name" (`name: "chosen"` in filters) reads it. `remember: "source"`: the source permanent remembers it for its other abilities. |
|
|
269
296
|
| [`choose_card_type`](docs/reference/effects.md#choose_card_type) | 205.2a, 607.2d, 608.2c | The player (`to`, default you) chooses a card type; later effects of this spell or ability read it with "types": "chosen". |
|
|
270
|
-
| [`choose_cards`](docs/reference/effects.md#choose_cards) | 701.20a, 701.20e, 400.7j, 608.2c, 607.2a, 118.12, 701.9a, 701.9b | You choose `count` (default 1; "any": any number) cards matching `for` from `from`: a selector (e.g. {"result": 0}, the cards an earlier effect milled) or a player's zone, {"hand": selector} / {"graveyard": selector}. `optional`: you may choose fewer. Then they are put into `put` (`discard`: from a hand, its owner discards them; `tapped` onto the battlefield, under your control; exiled cards `link`ed to the source). `look`: you look at the whole zone first; `reveal`: "chosen" reveals what you chose, "all" the whole set. `then` runs if a card was chosen, `otherwise` if none was ("if you can't"). `random: true`: the cards are picked at random (the game's random number generator) instead of chosen. |
|
|
297
|
+
| [`choose_cards`](docs/reference/effects.md#choose_cards) | 701.20a, 701.20e, 400.7j, 608.2c, 607.2a, 118.12, 701.9a, 701.9b, 608.2d | You choose `count` (default 1; "any": any number; "all": every matching card, no choice) cards matching `for` from `from`: a selector (e.g. {"result": 0}, the cards an earlier effect milled) or a player's zone, {"hand": selector} / {"graveyard": selector}. `optional`: you may choose fewer. Then they are put into `put` (`discard`: from a hand, its owner discards them; `tapped` onto the battlefield, under your control; exiled cards `link`ed to the source). `look`: you look at the whole zone first; `reveal`: "chosen" reveals what you chose, "all" the whole set. `then` runs if a card was chosen, `otherwise` if none was ("if you can't"). `random: true`: the cards are picked at random (the game's random number generator) instead of chosen. `chooser`: the player who chooses (a player selector, default "you"; e.g. "each_opponent" or {"target": 0}: "target opponent chooses a card from among them"); they look at the cards they choose from, and the cards still go where `put` says under your control. |
|
|
271
298
|
| [`choose_color`](docs/reference/effects.md#choose_color) | 105.4, 607.2d, 608.2c | The player (`to`, default you) chooses a color; later effects of this spell or ability read it with "colors": "chosen". |
|
|
272
299
|
| [`choose_creature_type`](docs/reference/effects.md#choose_creature_type) | 205.3m, 607.2d, 608.2c | The player (`to`, default you) chooses a creature type; later effects of this spell or ability read it with "subtypes": "chosen". |
|
|
273
300
|
| [`choose_new_targets`](docs/reference/effects.md#choose_new_targets) | 115.7, 115.7d, 115.7e | You may choose new targets for each spell or ability on the stack `of` refers to (e.g. {"triggering": "object"}: "that spell"): for each target, keep it or pick another legal target for that spell. |
|
|
274
301
|
| [`choose_option`](docs/reference/effects.md#choose_option) | 607.2f, 608.2c | The player (`to`, default you) chooses one of the `options` (words); later effects of this spell or ability check it with the condition {"chosen": word}. |
|
|
302
|
+
| [`cloak`](docs/reference/effects.md#cloak) | 701.58a, 701.58b, 701.58e, 701.58f, 701.58g, 708.2, 708.3 | Each referenced player (default you) cloaks the top card of their library `amount` times (default 1): it enters face down as a nameless colorless 2/2 creature with ward {2}. Its controller may turn it face up for its mana cost if it's a creature card. |
|
|
275
303
|
| [`connive`](docs/reference/effects.md#connive) | 701.50a, 701.50b, 701.50d, 701.50e | Each referenced permanent (default: this one) connives `amount` (default 1): its controller draws that many cards, then discards that many, then it gets a +1/+1 counter for each nonland card discarded. |
|
|
276
304
|
| [`copy_card`](docs/reference/effects.md#copy_card) | 707.12, 707.12a, 707.10a, 704.5d | Create `amount` copies of each card `of` refers to ("self": the source card), in the zone that card is in, owned by you. They are the effect's result, e.g. for `cast_free` or `cast`. A card copy ceases to exist if it is anywhere but the stack or the battlefield (so one that isn't cast now is gone at the next state-based-action check). |
|
|
277
305
|
| [`copy_spell`](docs/reference/effects.md#copy_spell) | 707.10, 707.10a, 707.10b, 707.10c, 707.10f, 608.3f | Copy each spell or ability on the stack `of` refers to ("self": the spell this ability or spell belongs to; a `stack_ability` target: an activated or triggered ability) `amount` times. The copies are put on the stack under the referenced player's control (default: you) with the same modes, X, kicker and targets; they aren't cast or activated, and an ability's copy has the same source. With `new_targets: true` the controller may choose new targets for each copy. A copy of a permanent spell becomes a token as it resolves. `except`: the copies have these differences (e.g. {"keywords": ["wither"]}: "the copy gains wither"). |
|
|
@@ -279,14 +307,14 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
279
307
|
| [`counter_bonus`](docs/reference/effects.md#counter_bonus) | 614.1a, 614.16, 611.2a, 122.6, 616.1 | Until end of turn, whenever one or more counters would be put on a permanent the controller controls (including counters it enters with), that many plus `amount` of each of those kinds are put on it instead. |
|
|
280
308
|
| [`counter_unless_pays`](docs/reference/effects.md#counter_unless_pays) | 701.6a, 118.12a, 605.3a, 701.67a | Counter each referenced spell or ability unless its controller pays `mana` (or `waterbend`s that cost, CR 701.67a, or pays the list of costs `cost`) as this resolves (they choose, and pay like any cost; mana abilities allowed). |
|
|
281
309
|
| [`create_emblem`](docs/reference/effects.md#create_emblem) | 114.1, 114.2, 114.3, 114.4, 113.6p | Each referenced player (default you) gets an emblem with the `abilities` (triggered, static or player_rule abilities). An emblem is in the command zone for the rest of the game; its abilities work there, and "this emblem" is the source of what they do. |
|
|
282
|
-
| [`create_token`](docs/reference/effects.md#create_token) | 111.1, 111.10, 701.7a, 704.5d, 508.4, 506.3b | Create `amount` tokens under the referenced player's control (default: you). `token` is a predefined token name (Treasure, Clue, Food) or an inline card definition. `tapped: true` creates them tapped; `attacking: true` attacking (only for the attacking player during combat, CR 506.3b). |
|
|
310
|
+
| [`create_token`](docs/reference/effects.md#create_token) | 111.1, 111.10, 701.7a, 704.5d, 508.4, 506.3b, 707.2 | Create `amount` tokens under the referenced player's control (default: you). `token` is a predefined token name (Treasure, Clue, Food) or an inline card definition. `tapped: true` creates them tapped; `attacking: true` attacking (only for the attacking player during combat, CR 506.3b); when the defending player controls a planeswalker, the controller chooses for each token whether it attacks that player or one of their planeswalkers (CR 508.4). `size` (an amount, fixed as the effect starts) makes them N/N ("an X/X Spirit token, where X is ..."; part of their copiable values). |
|
|
283
311
|
| [`create_token_copy`](docs/reference/effects.md#create_token_copy) | 707.2, 707.8, 707.9a, 707.9b, 111.1, 614.1c | For each object `of` refers to (a permanent, a card in any zone, or the source with "self"), the referenced players (default: you) each create `amount` tokens that are copies of it: its copiable values (its card as modified by other copy effects, not counters, status or other effects), with the `except` modifications. The tokens are the effect's result, for later effects such as granting haste or a delayed sacrifice. |
|
|
284
312
|
| [`damage_replacement`](docs/reference/effects.md#damage_replacement) | 614.1a, 611.2a, 611.2c, 616.1 | For the `duration` (end_of_turn by default, or until_your_next_turn), damage that would be dealt to the referenced players and permanents (`to`, fixed as it resolves; with `permanents: true` also the permanents a referenced player controls as the damage is dealt) is changed: `multiply` (2 = "double that damage") or `plus` an amount (computed as it resolves). `combat`: combat | noncombat only. Doubling applies before adding. |
|
|
285
313
|
| [`damage_unpreventable`](docs/reference/effects.md#damage_unpreventable) | 615.12, 611.2a | Until end of turn, damage (`combat`: combat | noncombat only) can't be prevented. |
|
|
286
314
|
| [`deal_damage`](docs/reference/effects.md#deal_damage) | 120.3a, 120.3c, 120.3e, 120.6, 120.4a, 120.10 | Deal `amount` damage to each referenced creature, planeswalker or player. Damage to a player causes life loss; to a planeswalker removes loyalty counters; to a creature is marked until cleanup. {"this_way": n} naming it is the excess damage it dealt (beyond lethal damage, or a planeswalker's loyalty). |
|
|
287
|
-
| [`delayed_trigger`](docs/reference/effects.md#delayed_trigger) | 603.7a, 603.7b, 603.7c, 603.7d, 603.7e | Creates a delayed triggered ability with the controller and source of the resolving spell or ability. It triggers only once, the next time `when` happens (e.g. {"step_begins": {"step": "end", "whose": "each"}} for the next end step). Its `effects` may use {"result": n} for what earlier effects of the creating list moved or created; those objects are affected only if they are still where they were put. |
|
|
315
|
+
| [`delayed_trigger`](docs/reference/effects.md#delayed_trigger) | 603.7a, 603.7b, 603.7c, 603.7d, 603.7e | Creates a delayed triggered ability with the controller and source of the resolving spell or ability. It triggers only once, the next time `when` happens (e.g. {"step_begins": {"step": "end", "whose": "each"}} for the next end step). Its `effects` may use {"result": n} for what earlier effects of the creating list moved or created (n below its position); those objects are affected only if they are still where they were put. Its own effects are numbered on from there. |
|
|
288
316
|
| [`destroy`](docs/reference/effects.md#destroy) | 701.8a | Destroy each referenced permanent (it goes to its owner's graveyard). |
|
|
289
|
-
| [`dig`](docs/reference/effects.md#dig) | 701.20a, 701.20e, 401.4, 400.7j, 406.3, 607.2a | Look at the top `amount` cards of your library (`reveal: "all"`: reveal them). Take `count` (default 1; "all": every matching card, no choice; "any": any number) cards matching `for` and put them into `put` (`tapped` onto the battlefield); `optional`: you may take fewer. `reveal: "chosen"` reveals the cards taken. The rest go to `rest`: "bottom_random" (default), "bottom_any" (in an order you choose) or "graveyard". `put: "exile"` takes `face_down: true` (only you may look at them) and `link: true` (exiled with the source, CR 607.2a: hideaway). |
|
|
317
|
+
| [`dig`](docs/reference/effects.md#dig) | 701.20a, 701.20e, 401.4, 400.7j, 406.3, 607.2a, 702.75a | Look at the top `amount` cards of your library (`reveal: "all"`: reveal them). Take `count` (default 1; "all": every matching card, no choice; "any": any number) cards matching `for` and put them into `put` (`tapped` onto the battlefield); `optional`: you may take fewer. `reveal: "chosen"` reveals the cards taken. The rest go to `rest`: "bottom_random" (default), "bottom_any" (in an order you choose) or "graveyard". `put: "exile"` takes `face_down: true` (only you may look at them) and `link: true` (exiled with the source, CR 607.2a); `looker: "source_controller"`: whoever controls the source may look at them instead of you (hideaway, CR 702.75a). |
|
|
290
318
|
| [`discard`](docs/reference/effects.md#discard) | 701.9a, 701.9b | Each referenced player discards `amount` cards of their choice (default: you). `random: true`: the cards are chosen at random (the game's random number generator), with no decision. `hand: true`: each discards their whole hand at once ("discard your hand"; how many is its amount {"this_way": n}). |
|
|
291
319
|
| [`discover`](docs/reference/effects.md#discover) | 701.57a, 701.57b, 701.57c, 608.2g, 118.9 | Discover `amount`: exile cards from the top of your library until you exile a nonland card with mana value `amount` or less. You may cast it without paying its mana cost; if you don't, it goes into your hand. The other exiled cards go on the bottom of your library in a random order. |
|
|
292
320
|
| [`distribute_counters`](docs/reference/effects.md#distribute_counters) | 601.2d, 608.2b, 122.1 | Put on each legal target the number of `counter` counters assigned to it as the spell or ability was cast (its `divide` amount, at least one per target). |
|
|
@@ -301,7 +329,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
301
329
|
| [`exile`](docs/reference/effects.md#exile) | 406.1, 701.13a, 607.2a, 406.6, 610.3, 610.3a, 610.3b, 610.3c | Exile each referenced permanent, spell, or card in a graveyard or hand. `link: true`: the cards are exiled with the source, for its "exiled with" abilities (the `exiled_with` selector). `until_source_leaves: true`: they return to the battlefield under their owners' control when the source leaves the battlefield; if it already has, nothing is exiled. |
|
|
302
330
|
| [`exile_if_dies`](docs/reference/effects.md#exile_if_dies) | 614.1a, 700.4, 611.2a, 611.2c | Until end of turn, if a referenced permanent would be put into a graveyard from the battlefield, it is exiled instead. |
|
|
303
331
|
| [`exile_this_spell`](docs/reference/effects.md#exile_this_spell) | 608.2n, 406.1 | The resolving spell is exiled instead of being put into its owner's graveyard as it finishes resolving. |
|
|
304
|
-
| [`exile_top`](docs/reference/effects.md#exile_top) | 406.1, 400.7j, 607.2a, 406.3, 406.3a | Each referenced player (default: you) exiles the top `amount` cards of their library (face up). Later effects name them with {"result": n}; `link: true` exiles them with the source. `face_down: true` exiles them face down: only the `looker` players (default: you) may look at them. |
|
|
332
|
+
| [`exile_top`](docs/reference/effects.md#exile_top) | 406.1, 400.7j, 607.2a, 406.3, 406.3a, 202.3, 608.2c | Each referenced player (default: you) exiles the top `amount` cards of their library (face up). Later effects name them with {"result": n}; `link: true` exiles them with the source. `face_down: true` exiles them face down: only the `looker` players (default: you) may look at them. `until` instead of `amount`: exile cards from the top one at a time until {"total_mana_value": N}: those cards have a total mana value of N or more, or {"card": card spec}: a matching card is exiled (or the library is empty). |
|
|
305
333
|
| [`exile_until`](docs/reference/effects.md#exile_until) | 406.1, 701.13a, 400.7j | Each referenced player exiles cards from the top of their library until they exile a card matching `until` (or the library is empty). All exiled cards are the result. |
|
|
306
334
|
| [`explore`](docs/reference/effects.md#explore) | 701.44a, 701.44b, 701.44c | Each referenced permanent explores: its controller reveals the top card of their library. A land card goes to their hand; otherwise the permanent gets a +1/+1 counter (if it's still on the battlefield) and they may put the card into their graveyard. |
|
|
307
335
|
| [`extra_turn`](docs/reference/effects.md#extra_turn) | 500.7 | Each referenced player (default you) takes an extra turn after this one. Extra turns are taken most recently created first. |
|
|
@@ -311,16 +339,19 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
311
339
|
| [`gain_life`](docs/reference/effects.md#gain_life) | 119.3 | Each referenced player gains `amount` life (default: you). |
|
|
312
340
|
| [`grant`](docs/reference/effects.md#grant) | 611.2a, 611.2c, 613.1f, 514.2, 500.1 | Each referenced permanent (or spell on the stack) gains the `keywords` until end of turn (`duration: "until_your_next_turn"`: until its controller's next turn begins). |
|
|
313
341
|
| [`grant_ability`](docs/reference/effects.md#grant_ability) | 113.6b, 611.2a, 613.1f | Each referenced object (a permanent, or a card in any zone, e.g. an exiled card) gains `ability` (any ability entry) for as long as it stays in its zone (default) or until end of turn. `for` (a card spec) keeps only matching objects ("that nonland card"). An activated ability with `zone` works from that zone ("activate only if this card is exiled"). |
|
|
342
|
+
| [`harness`](docs/reference/effects.md#harness) | 701.64a, 701.64b | Each referenced permanent (default: this one) becomes harnessed if it isn't (a designation it keeps until it leaves the battlefield). Its `infinity` abilities work while it is. |
|
|
314
343
|
| [`look_at_hand`](docs/reference/effects.md#look_at_hand) | 701.20e | You look at each referenced player's hand (other players don't see the cards). |
|
|
315
344
|
| [`lose_game`](docs/reference/effects.md#lose_game) | 104.3e, 104.4a | Each referenced player (default you) loses the game. |
|
|
316
345
|
| [`lose_life`](docs/reference/effects.md#lose_life) | 119.3 | Each referenced player loses `amount` life. The life lost is recorded for {"this_way": n}. |
|
|
317
|
-
| [`
|
|
346
|
+
| [`manifest`](docs/reference/effects.md#manifest) | 701.40a, 701.40b, 701.40e, 701.40f, 701.40g, 708.2, 708.3 | Each referenced player (default you) manifests the top card of their library `amount` times (default 1): it enters face down as a nameless colorless 2/2 creature with no abilities. Its controller may turn it face up for its mana cost if it's a creature card (special action `turn_face_up`). The new permanents are this effect's results. |
|
|
347
|
+
| [`manifest_dread`](docs/reference/effects.md#manifest_dread) | 701.62a, 701.62b, 701.40a, 701.20e | Each referenced player (default you) manifests dread: looks at the top two cards of their library, manifests one of them (decision `effect_choice`) and puts the other into their graveyard. Triggers on it (`keyword_action` "manifest_dread") see it after it's complete. |
|
|
348
|
+
| [`may`](docs/reference/effects.md#may) | 118.12, 118.3, 608.2d, 608.2e | An optional effect. The controller chooses yes or no as it resolves; yes is offered only if every effect in `effects` can be done fully. On yes, `effects` then `then` ("if you do") happen; on no, `otherwise` ("if you don't"). Nested effects may name the results of earlier effects of the enclosing list ({"result": n} with n below this effect's position) and their own, numbered on from there: `effects` then `then` in one numbering, `otherwise` in its own ("if you do, ... the creature sacrificed this way"). |
|
|
318
349
|
| [`meld`](docs/reference/effects.md#meld) | 701.42a, 701.42b, 701.42c, 713.1a, 713.6, 713.8 | Exile this permanent and a creature named `with` that you both own and control, then meld them: a meld pair (cards with layout "meld" sharing a back face) enters the battlefield as one permanent with that back face up. When it leaves the battlefield, both cards go to the new zone. |
|
|
319
350
|
| [`mill`](docs/reference/effects.md#mill) | 701.17a | Each referenced player puts the top `amount` cards of their library into their graveyard (default: you). |
|
|
320
351
|
| [`pay`](docs/reference/effects.md#pay) | 118.12, 118.12a, 118.3, 119.4, 605.3a, 701.67a, 701.67c | You may pay `cost` (a list of costs: mana, life, discarding, sacrificing, a `one_of` choice, ...) as it resolves; `mana`, `life` and `waterbend` are shorthands for one cost. If you do, `then` happens; if you don't, `otherwise`. Paying mana works like paying a spell's cost (mana abilities may be activated; a `waterbend` cost may also be paid by tapping artifacts and creatures, CR 701.67a); a cost that can't be paid can't be chosen (CR 118.3). For another player paying, see `counter_unless_pays`. |
|
|
321
352
|
| [`phase_out`](docs/reference/effects.md#phase_out) | 702.26a, 702.26b, 702.26d, 702.26g, 702.26h, 502.1, 506.4 | Each referenced permanent phases out, with the Auras and Equipment attached to it (indirectly). It phases in during the untap step of the player who controlled it as it phased out. Phasing isn't a zone change: no enters or leaves triggers. |
|
|
322
|
-
| [`play_permission`](docs/reference/effects.md#play_permission) | 611.2a, 601.3, 305.1, 400.7, 514.2, 601.2f, 108.3, 406.3b, 609.4b | A player may play (`play: "play"`, default) or cast (`"cast"`) each referenced exiled card matching `for`/`not_types`, paying its costs and following timing rules, for `duration`: end_of_turn (default), end_of_your_next_turn, until_your_next_end_step or
|
|
323
|
-
| [`player_rule`](docs/reference/effects.md#player_rule) | 702.11c, 115.4, 508.1c, 402.2, 514.1, 615.1, 615.1a, 704.5a, 104.3b, 701.21a, 614.17b, 101.2, 601.3, 701.6a, 119.7, 602.5, 615.12, 702.16b, 702.16e, 702.16k, 611.2a, 514.2 | Each referenced player (default you) gets `rule` for the `duration`: end_of_turn (default) or until_your_next_turn (until the controller's next turn begins). Rules: hexproof, cant_attack, no_max_hand_size, prevent_all_damage, cant_lose_for_life, cant_cast, cant_cast_except_from_hand, spells_cant_be_countered, abilities_cant_be_countered, cant_gain_life, cant_activate, damage_cant_be_prevented, combat_damage_cant_be_prevented, protection_from_opponents. |
|
|
353
|
+
| [`play_permission`](docs/reference/effects.md#play_permission) | 611.2a, 611.2b, 601.3, 305.1, 400.7, 514.2, 601.2f, 108.3, 406.3b, 609.4b, 118.9, 701.67a | A player may play (`play: "play"`, default) or cast (`"cast"`) each referenced exiled card matching `for`/`not_types`, paying its costs and following timing rules, for `duration`: end_of_turn (default), end_of_your_next_turn, until_your_next_end_step, while_exiled or while_you_control_source ("for as long as you control this creature"). With `choose: "one_per_owner"` only one chosen card per owner. `to_player`: who may play it, "controller" (default, the effect's controller), "owner" (the card's owner) or a player selector (a face-down card: only someone who may look at it). `cost_increase`: spells cast this way cost that much generic mana more. `any_mana_type: true`: mana of any type can be spent to cast those spells. `during: "your_turn"`: only during your turn. `waterbend: "mana_value"`: cast it by waterbending {X} rather than paying its mana cost, where X is its mana value. |
|
|
354
|
+
| [`player_rule`](docs/reference/effects.md#player_rule) | 702.11c, 115.4, 508.1c, 402.2, 514.1, 615.1, 615.1a, 704.5a, 104.3b, 701.21a, 614.17b, 101.2, 601.3, 701.6a, 119.7, 602.5, 615.12, 702.16b, 702.16e, 702.16k, 506.3, 611.2a, 514.2 | Each referenced player (default you) gets `rule` for the `duration`: end_of_turn (default) or until_your_next_turn (until the controller's next turn begins). Rules: hexproof, cant_attack, no_max_hand_size, prevent_all_damage, cant_lose_for_life, cant_cast, cant_cast_except_from_hand, spells_cant_be_countered, abilities_cant_be_countered, cant_gain_life, cant_activate, damage_cant_be_prevented, combat_damage_cant_be_prevented, protection_from_opponents. |
|
|
324
355
|
| [`plot`](docs/reference/effects.md#plot) | 702.170c, 702.170d, 406.1 | Each referenced card or spell is exiled (if it isn't already) and becomes plotted: its owner may cast it from exile without paying its mana cost during their main phase while the stack is empty, on any later turn (cast option `via: "plotted"`). |
|
|
325
356
|
| [`prepare`](docs/reference/effects.md#prepare) | 723.3a, 723.3c | Each referenced permanent (default: this one) becomes prepared, if it has a prepare spell and isn't prepared already: its controller creates a copy of the prepare spell in exile and may cast that copy while the permanent stays prepared. Casting it unprepares the permanent. |
|
|
326
357
|
| [`prevent_damage`](docs/reference/effects.md#prevent_damage) | 615.1, 615.3, 615.5, 615.7, 615.8, 609.7a, 611.2a, 611.2b, 611.2c | For the `duration` (end_of_turn by default, until_your_next_turn, or while_source_on_battlefield: for as long as this effect's source remains on the battlefield), damage that would be dealt to the referenced players and permanents (`to`, fixed as it resolves) or to those matching `to_each` as the damage is dealt (a damage scope seen from the controller, e.g. {"each": "creature", "controller": "you"}), and/or by the referenced sources (`by`; "chosen_source": a source the controller chooses as it resolves) is prevented (`combat`: combat | noncombat only). With `next`, it is a shield that prevents only the next that much damage; with `next_time: true` it prevents only the next damage event it applies to. `then`: effects right after it prevents damage, reading {"triggering": "amount"} (the damage prevented), "object" (the source) and "player" (its controller). |
|
|
@@ -328,10 +359,11 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
328
359
|
| [`pump`](docs/reference/effects.md#pump) | 611.2a, 611.2c, 613.4c, 514.2, 500.1 | Each referenced creature gets +power/+toughness until end of turn (`duration: "until_your_next_turn"`: until its controller's next turn begins). The set of affected creatures is locked in when the effect starts. |
|
|
329
360
|
| [`put_in_library`](docs/reference/effects.md#put_in_library) | 401.4, 400.7, 608.2b | Put each referenced permanent, or card in a graveyard or exile, into its owner's library: on the `top` or `bottom`, or (`owner_choice`) where its owner chooses. |
|
|
330
361
|
| [`recruit`](docs/reference/effects.md#recruit) | 701.70a | Each referenced player (default: you) recruits: draws a card, then discards a card; if a nonland card was discarded, they create a 1/1 white Human Soldier creature token. |
|
|
331
|
-
| [`reflexive_trigger`](docs/reference/effects.md#reflexive_trigger) | 603.12, 603.12a, 603.7d, 603.7e, 603.3d | Creates a reflexive triggered ability ("when you do, ...") that triggers immediately, with the controller and source of the resolving spell or ability. Its `targets` are chosen as it's put on the stack; its `effects` may name the results of earlier effects of the creating list. With `if`, it triggers only when the condition holds ("when excess damage is dealt this way"). |
|
|
332
|
-
| [`remove_all_counters`](docs/reference/effects.md#remove_all_counters) | 122.8 | Remove every counter named `counter` (every counter, if no `counter` is given) from each referenced permanent. |
|
|
333
|
-
| [`remove_counters`](docs/reference/effects.md#remove_counters) | 122.8 | Remove up to `amount` counters named `counter` from each referenced permanent. |
|
|
362
|
+
| [`reflexive_trigger`](docs/reference/effects.md#reflexive_trigger) | 603.12, 603.12a, 603.7d, 603.7e, 603.3d | Creates a reflexive triggered ability ("when you do, ...") that triggers immediately, with the controller and source of the resolving spell or ability. Its `targets` are chosen as it's put on the stack; its `effects` may name the results of earlier effects of the creating list ({"result": n} / {"this_way": n} with n below its position) and their own, numbered on from there. With `if`, it triggers only when the condition holds ("when excess damage is dealt this way"). |
|
|
363
|
+
| [`remove_all_counters`](docs/reference/effects.md#remove_all_counters) | 122.8, 122.1 | Remove every counter named `counter` (every counter, if no `counter` is given) from each referenced permanent or player ("you lose all poison counters"). |
|
|
364
|
+
| [`remove_counters`](docs/reference/effects.md#remove_counters) | 122.8, 122.1 | Remove up to `amount` counters named `counter` from each referenced permanent or player (poison, experience, ...). How many were removed is {"this_way": n} ("remove a bait counter ... If you do, ..."). |
|
|
334
365
|
| [`remove_damage`](docs/reference/effects.md#remove_damage) | 120.6, 514.2 | Remove all damage marked on each referenced permanent. |
|
|
366
|
+
| [`repeat`](docs/reference/effects.md#repeat) | 608.2c, 400.7j, 104.4b | Run `effects`, then run them again for as long as `while` (a condition) holds after a pass ("if the exiled card is a land card, repeat this process"). {"result": n} in the list and in `while` names what effect n did during the current pass. At most 100 passes. |
|
|
335
367
|
| [`return_choice`](docs/reference/effects.md#return_choice) | 101.4, 400.7, 608.2c | Each referenced player (default: you) returns `count` (default 1; "any": any number) permanents they control matching `filter` to their owners' hands, chosen by them in turn order starting with the active player (not targeted); all move at once. |
|
|
336
368
|
| [`return_to_battlefield`](docs/reference/effects.md#return_to_battlefield) | 400.7, 400.4a, 110.2, 111.8, 603.7c, 614.1c, 122.6, 712.11a, 712.11b, 205.1a | Put each referenced card that is in exile or a graveyard onto the battlefield under its owner's control (`under: "you"`: under the controller's), tapped if `tapped: true`. A card that is no longer in the zone it was expected in, or isn't a permanent card, stays where it is. `transformed: true`: it enters with its back face up; a card that isn't double-faced, or whose back face isn't a permanent, stays where it is. `as`: what it is as it enters, for as long as it stays (the `become` changes, without abilities): "It's an enchantment. (It's not a creature.)" is `{"set_types": ["enchantment"]}`; abilities that trigger on it entering see it so. |
|
|
337
369
|
| [`return_to_hand`](docs/reference/effects.md#return_to_hand) | 400.6, 404.1, 608.2b | Return each referenced permanent, spell ("return target spell to its owner's hand"), or card in a graveyard or exile ("target creature card from your graveyard"), to its owner's hand. |
|
|
@@ -340,13 +372,14 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
340
372
|
| [`sacrifice`](docs/reference/effects.md#sacrifice) | 701.21a | The controller sacrifices each referenced permanent they control (it goes to its owner's graveyard; it isn't destroyed, so indestructible doesn't stop it). |
|
|
341
373
|
| [`sacrifice_choice`](docs/reference/effects.md#sacrifice_choice) | 701.21a, 101.4, 118.3 | Each referenced player (default: you) sacrifices `count` (default 1; "any": any number) permanents they control matching `filter`, chosen by them in turn order starting with the active player; all are sacrificed at once. The `filter`'s `controller` and `other` restrictions are relative to the effect's controller and source. |
|
|
342
374
|
| [`scry`](docs/reference/effects.md#scry) | 701.22a | Look at the top `amount` cards of your library; put any number on the bottom and the rest on top in any order. |
|
|
343
|
-
| [`search_library`](docs/reference/effects.md#search_library) | 701.23a, 701.23b, 701.23d, 701.23e, 701.20a, 701.24a, 701.24b, 118.12, 110.2a | Search your library for up to `count` cards matching `for`, then put them into your hand (or onto the battlefield, tapped if `tapped`, with `counters`; or into your graveyard) and shuffle. `put: library_top`: shuffle, then put the found card (one) on top. Computed bounds in `for` are worked out as the effect resolves. With a stated quality you may find fewer (or none); a search for just "a card" must find one if it can. `reveal` shows the found cards to every player. `searcher` names another player who searches their own library (e.g. {"controller_of": {"target": 0}}); `may: true` lets the searcher decline (then nothing is shuffled). `different_names: true`: the cards found must all have different names ("basic land cards with different names"). |
|
|
375
|
+
| [`search_library`](docs/reference/effects.md#search_library) | 701.23a, 701.23b, 701.23d, 701.23e, 701.20a, 701.24a, 701.24b, 118.12, 110.2a, 614.1a | Search your library for up to `count` cards matching `for`, then put them into your hand (or onto the battlefield, tapped if `tapped`, with `counters`; or into your graveyard) and shuffle. `put: library_top`: shuffle, then put the found card (one) on top. Computed bounds in `for` are worked out as the effect resolves. With a stated quality you may find fewer (or none); a search for just "a card" must find one if it can. `reveal` shows the found cards to every player. `searcher` names another player who searches their own library (e.g. {"controller_of": {"target": 0}}); `may: true` lets the searcher decline (then nothing is shuffled). `different_names: true`: the cards found must all have different names ("basic land cards with different names"). `battlefield_instead`: {"if": condition, "for": card spec}: a found card matching `for` goes onto the battlefield instead of into your hand while the condition holds. |
|
|
344
376
|
| [`set_base_power_toughness`](docs/reference/effects.md#set_base_power_toughness) | 613.4b, 611.2a, 611.2b, 611.2c | Each referenced creature's base power and toughness become `power`/`toughness` (layer 7b; counters and pumps still apply), until end of turn or, with `duration: "indefinite"`, for as long as it stays on the battlefield. |
|
|
345
377
|
| [`set_creature_types`](docs/reference/effects.md#set_creature_types) | 205.1a, 613.1d, 611.2c, 514.2 | Until end of turn, each referenced creature's creature types are exactly `types` (its other subtypes, such as artifact types, stay). The affected set is locked in. |
|
|
346
378
|
| [`set_life`](docs/reference/effects.md#set_life) | 119.5, 119.7 | Each referenced player's life total becomes `amount` (default: you): they gain or lose the difference (so "can't gain life" and life-gain triggers apply). |
|
|
347
379
|
| [`shuffle_into_library`](docs/reference/effects.md#shuffle_into_library) | 701.24a, 701.24c | Put each referenced card (in a graveyard or exile) or permanent into its owner's library; each of those owners shuffles their library. |
|
|
348
380
|
| [`shuffle_library`](docs/reference/effects.md#shuffle_library) | 701.24a | Each referenced player shuffles their library (default: you). |
|
|
349
381
|
| [`skip_turns`](docs/reference/effects.md#skip_turns) | 614.1b, 614.10, 614.10a | Each referenced player skips their next `amount` turns (extra turns included): each of those turns doesn't happen, and the next player in turn order takes theirs. Several skips add up. |
|
|
382
|
+
| [`solve`](docs/reference/effects.md#solve) | 720.3a, 720.3b | Each referenced permanent (default: this one) becomes solved if it isn't (a designation it keeps until it leaves the battlefield). Usually written through `to_solve`. |
|
|
350
383
|
| [`surveil`](docs/reference/effects.md#surveil) | 701.25a | Look at the top `amount` cards of your library; put any number into your graveyard and the rest on top in any order. |
|
|
351
384
|
| [`suspend`](docs/reference/effects.md#suspend) | 702.62a, 702.62b, 406.1 | Exile each referenced card or spell with `amount` time counters on it; if it doesn't have suspend, it gains suspend (keyword `suspend`) while it stays exiled. |
|
|
352
385
|
| [`tap`](docs/reference/effects.md#tap) | 701.26a | Tap each referenced permanent. |
|
|
@@ -359,10 +392,12 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
359
392
|
|
|
360
393
|
| Name | Rules | Description |
|
|
361
394
|
| --- | --- | --- |
|
|
362
|
-
| [`any_target`](docs/reference/filters.md#any_target) | 115.4 | A creature, player
|
|
395
|
+
| [`any_target`](docs/reference/filters.md#any_target) | 115.4 | A creature, player, planeswalker or battle. |
|
|
363
396
|
| [`artifact`](docs/reference/filters.md#artifact) | 115.1 | An artifact on the battlefield. |
|
|
397
|
+
| [`battle`](docs/reference/filters.md#battle) | 310.5 | A battle on the battlefield. |
|
|
364
398
|
| [`creature`](docs/reference/filters.md#creature) | 115.1 | A creature on the battlefield. |
|
|
365
399
|
| [`creature_or_planeswalker`](docs/reference/filters.md#creature_or_planeswalker) | 115.1 | A creature or planeswalker on the battlefield. |
|
|
400
|
+
| [`exiled_with`](docs/reference/filters.md#exiled_with) | 607.2a, 406.6, 115.1 | A card in exile that one of this object's abilities exiled (linked abilities: "the cards exiled with it"); restrict with `any_of`/`not` for its card types. |
|
|
366
401
|
| [`graveyard_card`](docs/reference/filters.md#graveyard_card) | 404.1, 115.1 | A card in a graveyard (any player's, in seat order; restrict with `controller` for its owner and `any_of`/`not` for its card types). |
|
|
367
402
|
| [`land`](docs/reference/filters.md#land) | 115.1 | A land on the battlefield. |
|
|
368
403
|
| [`one_of`](docs/reference/filters.md#one_of) | 115.1, 109.2 | Anything at least one of the listed filters matches (each may have restrictions). |
|
|
@@ -371,7 +406,7 @@ Rules version: Comprehensive Rules effective 2026-11-06.
|
|
|
371
406
|
| [`planeswalker`](docs/reference/filters.md#planeswalker) | 115.1 | A planeswalker on the battlefield. |
|
|
372
407
|
| [`player`](docs/reference/filters.md#player) | 115.1 | A player. |
|
|
373
408
|
| [`spell`](docs/reference/filters.md#spell) | 112.1, 115.1 | A spell on the stack. |
|
|
374
|
-
| [`stack_ability`](docs/reference/filters.md#stack_ability) | 113.1b, 115.1, 605.3b, 113.7 | An activated or triggered ability on the stack. `kind`: "activated" or "triggered" for only one of them; `controller`: you | opponent; `source`: a filter its source matches (e.g. "creature", "artifact"). |
|
|
409
|
+
| [`stack_ability`](docs/reference/filters.md#stack_ability) | 113.1b, 115.1, 605.3b, 113.7, 115.7 | An activated or triggered ability on the stack. `kind`: "activated" or "triggered" for only one of them; `controller`: you | opponent; `source`: a filter its source matches (e.g. "creature", "artifact"); `single_target: true`: one with a single target. |
|
|
375
410
|
|
|
376
411
|
## Counters with rules
|
|
377
412
|
|
data/docs/ARCHITECTURE.md
CHANGED
|
@@ -52,21 +52,26 @@ lib/enjine/
|
|
|
52
52
|
characteristics.rb # CR 613 layer pipeline for P/T, continuous effects, cleanup
|
|
53
53
|
rules.rb copies.rb faces.rb ... # player rules and control; copies (CR 707); faces; sagas, phasing, speed ...
|
|
54
54
|
commander.rb # CR 903 (Duel Commander): command zone, tax, 903.9 returns, commander damage
|
|
55
|
+
face_down_permanents.rb # CR 708: face-down spells and permanents (manifest, cloak, morph, disguise), turning up
|
|
56
|
+
rooms.rb permanent_designations.rb crimes.rb # CR 709.5 doors; solved/harnessed designations; CR 700.13 crimes
|
|
57
|
+
options_memo.rb # per-decision memo and quick nos while legal options are computed (same answers)
|
|
55
58
|
steps.rb # 12 step objects with turn-based actions
|
|
56
59
|
events.rb # typed, serializable events + per-viewer redaction
|
|
57
60
|
decisions/ # one class per decision kind
|
|
58
61
|
priority play_or_draw mulligan bottom discard casting(choose_target, pay_cost) combat(...)
|
|
59
62
|
actions/ # options offered at priority
|
|
60
|
-
pass play_land activate_mana_ability cast(cast, activate)
|
|
61
|
-
snapshot.rb
|
|
63
|
+
pass play_land activate_mana_ability cast(cast, activate) turn_face_up unlock
|
|
64
|
+
snapshot.rb snapshot/deep_copy.rb # export/import + full consistency validation (also the fuzz invariant)
|
|
62
65
|
view.rb history.rb # per-viewer views and histories
|
|
63
66
|
|
|
64
67
|
# ---- tooling (no game logic) ----
|
|
65
68
|
docs.rb # generates docs/reference/*.md + SUPPORTED.md from the Registry
|
|
66
69
|
agents/random.rb fuzz.rb # random legal player, invariant-checking fuzzer
|
|
70
|
+
rules_monitor.rb verify.rb # independent rules checks during play; --verify play-tests a folder of cards
|
|
67
71
|
cli.rb cli/text.rb # interactive hot-seat CLI + text renderer, --validate
|
|
68
72
|
deck_builder.rb # OPT-IN random constructed decks from a card pool
|
|
69
73
|
exe/enjine
|
|
74
|
+
script/determinism_digest.rb # per-game digests of seeded games: a speedup must leave them unchanged
|
|
70
75
|
examples/ # ready-to-play decks and a card pool (not in the gem)
|
|
71
76
|
spec/ unit/ integration/ e2e/ support/scenario.rb fixtures/cards/ (the test and fuzz cards)
|
|
72
77
|
docs/ DESIGN.md ARCHITECTURE.md MECHANICS_COVERAGE.md SUPPORTED.md(root) reference/ guides/
|