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/docs/reference/effects.md
CHANGED
|
@@ -236,7 +236,7 @@ Rules: CR 611.2a, CR 611.2b, CR 611.2c, CR 613.1d, CR 613.1e, CR 613.1f, CR 613.
|
|
|
236
236
|
| `subtypes` | subtypes it also has ("in addition to its other types") |
|
|
237
237
|
| `creature_types` | list of creature types (replaces the others; [] removes them all) |
|
|
238
238
|
| `all_creature_types` | true: it has every creature type |
|
|
239
|
-
| `colors` | list of W, U, B, R, G (replaces its colors) |
|
|
239
|
+
| `colors` | list of W, U, B, R, G (replaces its colors), or "chosen": the color chosen earlier while this resolved (choose_color); abilities it grants that say "chosen_color" keep that color |
|
|
240
240
|
| `loses_abilities` | true: it loses all abilities ("loses all abilities") |
|
|
241
241
|
| `keywords` | list of keywords it gains |
|
|
242
242
|
| `base_power_toughness` | {"power": n, "toughness": n} |
|
|
@@ -392,17 +392,18 @@ Rules: CR 701.68a, CR 701.68b, CR 701.68c
|
|
|
392
392
|
|
|
393
393
|
## cast
|
|
394
394
|
|
|
395
|
-
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
|
|
395
|
+
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"`).
|
|
396
396
|
|
|
397
397
|
Rules: CR 608.2g, CR 707.12, CR 707.12a, CR 601.2a, CR 601.2f
|
|
398
398
|
|
|
399
399
|
| Parameter | Description |
|
|
400
400
|
| --- | --- |
|
|
401
401
|
| `to` | selector |
|
|
402
|
+
| `from` | hand | graveyard |
|
|
402
403
|
| `for` | card spec |
|
|
403
404
|
| `not_types` | list of card types |
|
|
404
405
|
| `max_mana_value` | amount |
|
|
405
|
-
| `count` | 1 or "any" |
|
|
406
|
+
| `count` | integer >= 1 (default 1) or "any" |
|
|
406
407
|
| `exile_instead` | true or a card spec (as for cast_free) |
|
|
407
408
|
| `any_mana_type` | boolean: mana of any type can be spent to cast it (CR 609.4b) |
|
|
408
409
|
|
|
@@ -418,7 +419,7 @@ Rules: CR 608.2g, CR 707.12, CR 707.12a, CR 601.2a, CR 601.2f
|
|
|
418
419
|
|
|
419
420
|
## cast_free
|
|
420
421
|
|
|
421
|
-
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.
|
|
422
|
+
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.
|
|
422
423
|
|
|
423
424
|
Rules: CR 608.2g, CR 118.9, CR 601.2a, CR 107.3b, CR 118.6a, CR 305.2a, CR 305.3, CR 406.3a
|
|
424
425
|
|
|
@@ -428,7 +429,8 @@ Rules: CR 608.2g, CR 118.9, CR 601.2a, CR 107.3b, CR 118.6a, CR 305.2a, CR 305.3
|
|
|
428
429
|
| `for` | card spec |
|
|
429
430
|
| `not_types` | list of card types |
|
|
430
431
|
| `max_mana_value` | amount |
|
|
431
|
-
| `count` | 1 or "any" |
|
|
432
|
+
| `count` | integer >= 1 (default 1) or "any" |
|
|
433
|
+
| `from` | hand | graveyard |
|
|
432
434
|
| `play` | boolean |
|
|
433
435
|
| `exile_instead` | true or a card spec: if a spell cast this way (matching it) would be put into a graveyard, it's exiled instead (CR 614.1a) |
|
|
434
436
|
| `any_mana_type` | boolean: mana of any type can be spent to cast it (CR 609.4b) |
|
|
@@ -445,6 +447,50 @@ Rules: CR 608.2g, CR 118.9, CR 601.2a, CR 107.3b, CR 118.6a, CR 305.2a, CR 305.3
|
|
|
445
447
|
}
|
|
446
448
|
```
|
|
447
449
|
|
|
450
|
+
## change_target
|
|
451
|
+
|
|
452
|
+
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.
|
|
453
|
+
|
|
454
|
+
Rules: CR 115.7, CR 115.7a, CR 115.7e
|
|
455
|
+
|
|
456
|
+
| Parameter | Description |
|
|
457
|
+
| --- | --- |
|
|
458
|
+
| `of` | selector (spells or abilities on the stack) |
|
|
459
|
+
|
|
460
|
+
```json
|
|
461
|
+
{
|
|
462
|
+
"change_target": {
|
|
463
|
+
"of": {
|
|
464
|
+
"target": 0
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
## choose_card_name
|
|
471
|
+
|
|
472
|
+
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.
|
|
473
|
+
|
|
474
|
+
Rules: CR 201.4, CR 607.2d, CR 608.2c
|
|
475
|
+
|
|
476
|
+
| Parameter | Description |
|
|
477
|
+
| --- | --- |
|
|
478
|
+
| `types` | list of card types |
|
|
479
|
+
| `not` | list of card types |
|
|
480
|
+
| `remember` | "source" |
|
|
481
|
+
| `to` | player selector (default you) |
|
|
482
|
+
|
|
483
|
+
```json
|
|
484
|
+
{
|
|
485
|
+
"choose_card_name": {
|
|
486
|
+
"types": [
|
|
487
|
+
"land"
|
|
488
|
+
],
|
|
489
|
+
"remember": "source"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
```
|
|
493
|
+
|
|
448
494
|
## choose_card_type
|
|
449
495
|
|
|
450
496
|
The player (`to`, default you) chooses a card type; later effects of this spell or ability read it with "types": "chosen".
|
|
@@ -463,15 +509,15 @@ Rules: CR 205.2a, CR 607.2d, CR 608.2c
|
|
|
463
509
|
|
|
464
510
|
## choose_cards
|
|
465
511
|
|
|
466
|
-
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.
|
|
512
|
+
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.
|
|
467
513
|
|
|
468
|
-
Rules: CR 701.20a, CR 701.20e, CR 400.7j, CR 608.2c, CR 607.2a, CR 118.12, CR 701.9a, CR 701.9b
|
|
514
|
+
Rules: CR 701.20a, CR 701.20e, CR 400.7j, CR 608.2c, CR 607.2a, CR 118.12, CR 701.9a, CR 701.9b, CR 608.2d
|
|
469
515
|
|
|
470
516
|
| Parameter | Description |
|
|
471
517
|
| --- | --- |
|
|
472
518
|
| `from` | selector or {"hand"|"graveyard": player selector} |
|
|
473
519
|
| `for` | card spec |
|
|
474
|
-
| `count` | integer or "
|
|
520
|
+
| `count` | integer, "any" or "all" |
|
|
475
521
|
| `optional` | boolean |
|
|
476
522
|
| `put` | hand | graveyard | exile | battlefield | library_top | library_bottom | discard |
|
|
477
523
|
| `tapped` | boolean |
|
|
@@ -481,6 +527,7 @@ Rules: CR 701.20a, CR 701.20e, CR 400.7j, CR 608.2c, CR 607.2a, CR 118.12, CR 70
|
|
|
481
527
|
| `reveal` | chosen | all |
|
|
482
528
|
| `then` | list of effects |
|
|
483
529
|
| `otherwise` | list of effects |
|
|
530
|
+
| `chooser` | player selector (default "you") |
|
|
484
531
|
|
|
485
532
|
```json
|
|
486
533
|
{
|
|
@@ -571,6 +618,23 @@ Rules: CR 607.2f, CR 608.2c
|
|
|
571
618
|
}
|
|
572
619
|
```
|
|
573
620
|
|
|
621
|
+
## cloak
|
|
622
|
+
|
|
623
|
+
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.
|
|
624
|
+
|
|
625
|
+
Rules: CR 701.58a, CR 701.58b, CR 701.58e, CR 701.58f, CR 701.58g, CR 708.2, CR 708.3
|
|
626
|
+
|
|
627
|
+
| Parameter | Description |
|
|
628
|
+
| --- | --- |
|
|
629
|
+
| `amount` | amount (default 1) |
|
|
630
|
+
| `to` | players (default you) |
|
|
631
|
+
|
|
632
|
+
```json
|
|
633
|
+
{
|
|
634
|
+
"cloak": {}
|
|
635
|
+
}
|
|
636
|
+
```
|
|
637
|
+
|
|
574
638
|
## connive
|
|
575
639
|
|
|
576
640
|
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.
|
|
@@ -730,9 +794,9 @@ Rules: CR 114.1, CR 114.2, CR 114.3, CR 114.4, CR 113.6p
|
|
|
730
794
|
|
|
731
795
|
## create_token
|
|
732
796
|
|
|
733
|
-
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).
|
|
797
|
+
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).
|
|
734
798
|
|
|
735
|
-
Rules: CR 111.1, CR 111.10, CR 701.7a, CR 704.5d, CR 508.4, CR 506.3b
|
|
799
|
+
Rules: CR 111.1, CR 111.10, CR 701.7a, CR 704.5d, CR 508.4, CR 506.3b, CR 707.2
|
|
736
800
|
|
|
737
801
|
| Parameter | Description |
|
|
738
802
|
| --- | --- |
|
|
@@ -741,6 +805,7 @@ Rules: CR 111.1, CR 111.10, CR 701.7a, CR 704.5d, CR 508.4, CR 506.3b
|
|
|
741
805
|
| `tapped` | boolean |
|
|
742
806
|
| `attacking` | boolean |
|
|
743
807
|
| `to` | selector (default "you") |
|
|
808
|
+
| `size` | amount: the tokens are N/N |
|
|
744
809
|
|
|
745
810
|
```json
|
|
746
811
|
{
|
|
@@ -853,7 +918,7 @@ Rules: CR 120.3a, CR 120.3c, CR 120.3e, CR 120.6, CR 120.4a, CR 120.10
|
|
|
853
918
|
|
|
854
919
|
## delayed_trigger
|
|
855
920
|
|
|
856
|
-
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.
|
|
921
|
+
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.
|
|
857
922
|
|
|
858
923
|
Rules: CR 603.7a, CR 603.7b, CR 603.7c, CR 603.7d, CR 603.7e
|
|
859
924
|
|
|
@@ -908,9 +973,9 @@ Rules: CR 701.8a
|
|
|
908
973
|
|
|
909
974
|
## dig
|
|
910
975
|
|
|
911
|
-
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).
|
|
976
|
+
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).
|
|
912
977
|
|
|
913
|
-
Rules: CR 701.20a, CR 701.20e, CR 401.4, CR 400.7j, CR 406.3, CR 607.2a
|
|
978
|
+
Rules: CR 701.20a, CR 701.20e, CR 401.4, CR 400.7j, CR 406.3, CR 607.2a, CR 702.75a
|
|
914
979
|
|
|
915
980
|
| Parameter | Description |
|
|
916
981
|
| --- | --- |
|
|
@@ -924,6 +989,7 @@ Rules: CR 701.20a, CR 701.20e, CR 401.4, CR 400.7j, CR 406.3, CR 607.2a
|
|
|
924
989
|
| `rest` | bottom_random | bottom_any | graveyard |
|
|
925
990
|
| `face_down` | boolean (put exile) |
|
|
926
991
|
| `link` | boolean (put exile) |
|
|
992
|
+
| `looker` | "source_controller" (face_down) |
|
|
927
993
|
|
|
928
994
|
```json
|
|
929
995
|
{
|
|
@@ -1198,9 +1264,9 @@ Rules: CR 608.2n, CR 406.1
|
|
|
1198
1264
|
|
|
1199
1265
|
## exile_top
|
|
1200
1266
|
|
|
1201
|
-
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.
|
|
1267
|
+
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).
|
|
1202
1268
|
|
|
1203
|
-
Rules: CR 406.1, CR 400.7j, CR 607.2a, CR 406.3, CR 406.3a
|
|
1269
|
+
Rules: CR 406.1, CR 400.7j, CR 607.2a, CR 406.3, CR 406.3a, CR 202.3, CR 608.2c
|
|
1204
1270
|
|
|
1205
1271
|
| Parameter | Description |
|
|
1206
1272
|
| --- | --- |
|
|
@@ -1209,6 +1275,7 @@ Rules: CR 406.1, CR 400.7j, CR 607.2a, CR 406.3, CR 406.3a
|
|
|
1209
1275
|
| `link` | boolean |
|
|
1210
1276
|
| `face_down` | boolean |
|
|
1211
1277
|
| `looker` | selector of players who may look (default "you") |
|
|
1278
|
+
| `until` | {"total_mana_value": amount} | {"card": card spec} |
|
|
1212
1279
|
|
|
1213
1280
|
```json
|
|
1214
1281
|
{
|
|
@@ -1426,6 +1493,22 @@ Rules: CR 113.6b, CR 611.2a, CR 613.1f
|
|
|
1426
1493
|
}
|
|
1427
1494
|
```
|
|
1428
1495
|
|
|
1496
|
+
## harness
|
|
1497
|
+
|
|
1498
|
+
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.
|
|
1499
|
+
|
|
1500
|
+
Rules: CR 701.64a, CR 701.64b
|
|
1501
|
+
|
|
1502
|
+
| Parameter | Description |
|
|
1503
|
+
| --- | --- |
|
|
1504
|
+
| `to` | selector of permanents (default self) |
|
|
1505
|
+
|
|
1506
|
+
```json
|
|
1507
|
+
{
|
|
1508
|
+
"harness": {}
|
|
1509
|
+
}
|
|
1510
|
+
```
|
|
1511
|
+
|
|
1429
1512
|
## look_at_hand
|
|
1430
1513
|
|
|
1431
1514
|
You look at each referenced player's hand (other players don't see the cards).
|
|
@@ -1480,9 +1563,42 @@ Rules: CR 119.3
|
|
|
1480
1563
|
}
|
|
1481
1564
|
```
|
|
1482
1565
|
|
|
1566
|
+
## manifest
|
|
1567
|
+
|
|
1568
|
+
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.
|
|
1569
|
+
|
|
1570
|
+
Rules: CR 701.40a, CR 701.40b, CR 701.40e, CR 701.40f, CR 701.40g, CR 708.2, CR 708.3
|
|
1571
|
+
|
|
1572
|
+
| Parameter | Description |
|
|
1573
|
+
| --- | --- |
|
|
1574
|
+
| `amount` | amount (default 1) |
|
|
1575
|
+
| `to` | players (default you) |
|
|
1576
|
+
|
|
1577
|
+
```json
|
|
1578
|
+
{
|
|
1579
|
+
"manifest": {}
|
|
1580
|
+
}
|
|
1581
|
+
```
|
|
1582
|
+
|
|
1583
|
+
## manifest_dread
|
|
1584
|
+
|
|
1585
|
+
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.
|
|
1586
|
+
|
|
1587
|
+
Rules: CR 701.62a, CR 701.62b, CR 701.40a, CR 701.20e
|
|
1588
|
+
|
|
1589
|
+
| Parameter | Description |
|
|
1590
|
+
| --- | --- |
|
|
1591
|
+
| `to` | players (default you) |
|
|
1592
|
+
|
|
1593
|
+
```json
|
|
1594
|
+
{
|
|
1595
|
+
"manifest_dread": {}
|
|
1596
|
+
}
|
|
1597
|
+
```
|
|
1598
|
+
|
|
1483
1599
|
## may
|
|
1484
1600
|
|
|
1485
|
-
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.
|
|
1601
|
+
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").
|
|
1486
1602
|
|
|
1487
1603
|
Rules: CR 118.12, CR 118.3, CR 608.2d, CR 608.2e
|
|
1488
1604
|
|
|
@@ -1611,14 +1727,14 @@ Rules: CR 702.26a, CR 702.26b, CR 702.26d, CR 702.26g, CR 702.26h, CR 502.1, CR
|
|
|
1611
1727
|
|
|
1612
1728
|
## play_permission
|
|
1613
1729
|
|
|
1614
|
-
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
|
|
1730
|
+
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.
|
|
1615
1731
|
|
|
1616
|
-
Rules: CR 611.2a, CR 601.3, CR 305.1, CR 400.7, CR 514.2, CR 601.2f, CR 108.3, CR 406.3b, CR 609.4b
|
|
1732
|
+
Rules: CR 611.2a, CR 611.2b, CR 601.3, CR 305.1, CR 400.7, CR 514.2, CR 601.2f, CR 108.3, CR 406.3b, CR 609.4b, CR 118.9, CR 701.67a
|
|
1617
1733
|
|
|
1618
1734
|
| Parameter | Description |
|
|
1619
1735
|
| --- | --- |
|
|
1620
1736
|
| `to` | selector (usually {"result": n}) |
|
|
1621
|
-
| `duration` | end_of_turn | end_of_your_next_turn | until_your_next_end_step | while_exiled |
|
|
1737
|
+
| `duration` | end_of_turn | end_of_your_next_turn | until_your_next_end_step | while_exiled | while_you_control_source |
|
|
1622
1738
|
| `play` | play | cast |
|
|
1623
1739
|
| `for` | card spec |
|
|
1624
1740
|
| `not_types` | list of card types |
|
|
@@ -1627,6 +1743,8 @@ Rules: CR 611.2a, CR 601.3, CR 305.1, CR 400.7, CR 514.2, CR 601.2f, CR 108.3, C
|
|
|
1627
1743
|
| `cost_increase` | integer >= 1 |
|
|
1628
1744
|
| `any_mana_type` | boolean |
|
|
1629
1745
|
| `exile_instead` | true or a card spec: if a spell cast this way (matching it) would be put into a graveyard, it's exiled instead (CR 614.1a) |
|
|
1746
|
+
| `during` | your_turn |
|
|
1747
|
+
| `waterbend` | mana_value |
|
|
1630
1748
|
|
|
1631
1749
|
```json
|
|
1632
1750
|
{
|
|
@@ -1643,7 +1761,7 @@ Rules: CR 611.2a, CR 601.3, CR 305.1, CR 400.7, CR 514.2, CR 601.2f, CR 108.3, C
|
|
|
1643
1761
|
|
|
1644
1762
|
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.
|
|
1645
1763
|
|
|
1646
|
-
Rules: CR 702.11c, CR 115.4, CR 508.1c, CR 402.2, CR 514.1, CR 615.1, CR 615.1a, CR 704.5a, CR 104.3b, CR 701.21a, CR 614.17b, CR 101.2, CR 601.3, CR 701.6a, CR 119.7, CR 602.5, CR 615.12, CR 702.16b, CR 702.16e, CR 702.16k, CR 611.2a, CR 514.2
|
|
1764
|
+
Rules: CR 702.11c, CR 115.4, CR 508.1c, CR 402.2, CR 514.1, CR 615.1, CR 615.1a, CR 704.5a, CR 104.3b, CR 701.21a, CR 614.17b, CR 101.2, CR 601.3, CR 701.6a, CR 119.7, CR 602.5, CR 615.12, CR 702.16b, CR 702.16e, CR 702.16k, CR 506.3, CR 611.2a, CR 514.2
|
|
1647
1765
|
|
|
1648
1766
|
| Parameter | Description |
|
|
1649
1767
|
| --- | --- |
|
|
@@ -1807,7 +1925,7 @@ Rules: CR 701.70a
|
|
|
1807
1925
|
|
|
1808
1926
|
## reflexive_trigger
|
|
1809
1927
|
|
|
1810
|
-
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").
|
|
1928
|
+
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").
|
|
1811
1929
|
|
|
1812
1930
|
Rules: CR 603.12, CR 603.12a, CR 603.7d, CR 603.7e, CR 603.3d
|
|
1813
1931
|
|
|
@@ -1840,9 +1958,9 @@ Rules: CR 603.12, CR 603.12a, CR 603.7d, CR 603.7e, CR 603.3d
|
|
|
1840
1958
|
|
|
1841
1959
|
## remove_all_counters
|
|
1842
1960
|
|
|
1843
|
-
Remove every counter named `counter` (every counter, if no `counter` is given) from each referenced permanent.
|
|
1961
|
+
Remove every counter named `counter` (every counter, if no `counter` is given) from each referenced permanent or player ("you lose all poison counters").
|
|
1844
1962
|
|
|
1845
|
-
Rules: CR 122.8
|
|
1963
|
+
Rules: CR 122.8, CR 122.1
|
|
1846
1964
|
|
|
1847
1965
|
| Parameter | Description |
|
|
1848
1966
|
| --- | --- |
|
|
@@ -1862,9 +1980,9 @@ Rules: CR 122.8
|
|
|
1862
1980
|
|
|
1863
1981
|
## remove_counters
|
|
1864
1982
|
|
|
1865
|
-
Remove up to `amount` counters named `counter` from each referenced permanent.
|
|
1983
|
+
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, ...").
|
|
1866
1984
|
|
|
1867
|
-
Rules: CR 122.8
|
|
1985
|
+
Rules: CR 122.8, CR 122.1
|
|
1868
1986
|
|
|
1869
1987
|
| Parameter | Description |
|
|
1870
1988
|
| --- | --- |
|
|
@@ -1904,6 +2022,44 @@ Rules: CR 120.6, CR 514.2
|
|
|
1904
2022
|
}
|
|
1905
2023
|
```
|
|
1906
2024
|
|
|
2025
|
+
## repeat
|
|
2026
|
+
|
|
2027
|
+
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.
|
|
2028
|
+
|
|
2029
|
+
Rules: CR 608.2c, CR 400.7j, CR 104.4b
|
|
2030
|
+
|
|
2031
|
+
| Parameter | Description |
|
|
2032
|
+
| --- | --- |
|
|
2033
|
+
| `effects` | list of effects (one pass) |
|
|
2034
|
+
| `while` | condition, checked after each pass |
|
|
2035
|
+
|
|
2036
|
+
```json
|
|
2037
|
+
{
|
|
2038
|
+
"repeat": {
|
|
2039
|
+
"effects": [
|
|
2040
|
+
{
|
|
2041
|
+
"mill": {
|
|
2042
|
+
"amount": 1
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
],
|
|
2046
|
+
"while": {
|
|
2047
|
+
"amount": {
|
|
2048
|
+
"count": {
|
|
2049
|
+
"result": 0,
|
|
2050
|
+
"for": {
|
|
2051
|
+
"types": [
|
|
2052
|
+
"land"
|
|
2053
|
+
]
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
"at_least": 1
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
```
|
|
2062
|
+
|
|
1907
2063
|
## return_choice
|
|
1908
2064
|
|
|
1909
2065
|
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.
|
|
@@ -2078,9 +2234,9 @@ Rules: CR 701.22a
|
|
|
2078
2234
|
|
|
2079
2235
|
## search_library
|
|
2080
2236
|
|
|
2081
|
-
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").
|
|
2237
|
+
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.
|
|
2082
2238
|
|
|
2083
|
-
Rules: CR 701.23a, CR 701.23b, CR 701.23d, CR 701.23e, CR 701.20a, CR 701.24a, CR 701.24b, CR 118.12, CR 110.2a
|
|
2239
|
+
Rules: CR 701.23a, CR 701.23b, CR 701.23d, CR 701.23e, CR 701.20a, CR 701.24a, CR 701.24b, CR 118.12, CR 110.2a, CR 614.1a
|
|
2084
2240
|
|
|
2085
2241
|
| Parameter | Description |
|
|
2086
2242
|
| --- | --- |
|
|
@@ -2093,6 +2249,7 @@ Rules: CR 701.23a, CR 701.23b, CR 701.23d, CR 701.23e, CR 701.20a, CR 701.24a, C
|
|
|
2093
2249
|
| `searcher` | selector of the searching player (default "you") |
|
|
2094
2250
|
| `may` | true: the searcher may choose not to search |
|
|
2095
2251
|
| `different_names` | true: each card found has a different name |
|
|
2252
|
+
| `battlefield_instead` | {"if": condition, "for": card spec} (with put: hand) |
|
|
2096
2253
|
|
|
2097
2254
|
```json
|
|
2098
2255
|
{
|
|
@@ -2235,6 +2392,22 @@ Rules: CR 614.1b, CR 614.10, CR 614.10a
|
|
|
2235
2392
|
}
|
|
2236
2393
|
```
|
|
2237
2394
|
|
|
2395
|
+
## solve
|
|
2396
|
+
|
|
2397
|
+
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`.
|
|
2398
|
+
|
|
2399
|
+
Rules: CR 720.3a, CR 720.3b
|
|
2400
|
+
|
|
2401
|
+
| Parameter | Description |
|
|
2402
|
+
| --- | --- |
|
|
2403
|
+
| `to` | selector of permanents (default self) |
|
|
2404
|
+
|
|
2405
|
+
```json
|
|
2406
|
+
{
|
|
2407
|
+
"solve": {}
|
|
2408
|
+
}
|
|
2409
|
+
```
|
|
2410
|
+
|
|
2238
2411
|
## surveil
|
|
2239
2412
|
|
|
2240
2413
|
Look at the top `amount` cards of your library; put any number into your graveyard and the rest on top in any order.
|
data/docs/reference/filters.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## any_target
|
|
6
6
|
|
|
7
|
-
A creature, player
|
|
7
|
+
A creature, player, planeswalker or battle.
|
|
8
8
|
|
|
9
9
|
Rules: CR 115.4
|
|
10
10
|
|
|
@@ -22,6 +22,16 @@ Rules: CR 115.1
|
|
|
22
22
|
"artifact"
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
## battle
|
|
26
|
+
|
|
27
|
+
A battle on the battlefield.
|
|
28
|
+
|
|
29
|
+
Rules: CR 310.5
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
"battle"
|
|
33
|
+
```
|
|
34
|
+
|
|
25
35
|
## creature
|
|
26
36
|
|
|
27
37
|
A creature on the battlefield.
|
|
@@ -42,6 +52,22 @@ Rules: CR 115.1
|
|
|
42
52
|
"creature_or_planeswalker"
|
|
43
53
|
```
|
|
44
54
|
|
|
55
|
+
## exiled_with
|
|
56
|
+
|
|
57
|
+
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.
|
|
58
|
+
|
|
59
|
+
Rules: CR 607.2a, CR 406.6, CR 115.1
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"exiled_with": {
|
|
64
|
+
"any_of": [
|
|
65
|
+
"creature"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
45
71
|
## graveyard_card
|
|
46
72
|
|
|
47
73
|
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).
|
|
@@ -152,15 +178,16 @@ Rules: CR 112.1, CR 115.1
|
|
|
152
178
|
|
|
153
179
|
## stack_ability
|
|
154
180
|
|
|
155
|
-
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").
|
|
181
|
+
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.
|
|
156
182
|
|
|
157
|
-
Rules: CR 113.1b, CR 115.1, CR 605.3b, CR 113.7
|
|
183
|
+
Rules: CR 113.1b, CR 115.1, CR 605.3b, CR 113.7, CR 115.7
|
|
158
184
|
|
|
159
185
|
| Parameter | Description |
|
|
160
186
|
| --- | --- |
|
|
161
187
|
| `kind` | activated | triggered |
|
|
162
188
|
| `controller` | you | opponent |
|
|
163
189
|
| `source` | filter |
|
|
190
|
+
| `single_target` | boolean |
|
|
164
191
|
|
|
165
192
|
```json
|
|
166
193
|
{
|
data/docs/reference/keywords.md
CHANGED
|
@@ -128,6 +128,20 @@ Rules: CR 701.6a, CR 101.2
|
|
|
128
128
|
}
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
+
## cant_become_untapped
|
|
132
|
+
|
|
133
|
+
This permanent can't become untapped: not in its controller's untap step nor by an effect ("untap it" does nothing).
|
|
134
|
+
|
|
135
|
+
Rules: CR 701.26b, CR 502.3, CR 101.2
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"keywords": [
|
|
140
|
+
"cant become untapped"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
131
145
|
## cant_block
|
|
132
146
|
|
|
133
147
|
Restriction: this creature can't block.
|
|
@@ -464,6 +478,20 @@ Rules: CR 702.192a, CR 707.12, CR 603.7, CR 608.2g
|
|
|
464
478
|
}
|
|
465
479
|
```
|
|
466
480
|
|
|
481
|
+
## persist
|
|
482
|
+
|
|
483
|
+
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.
|
|
484
|
+
|
|
485
|
+
Rules: CR 702.79a, CR 603.10a, CR 603.4
|
|
486
|
+
|
|
487
|
+
```json
|
|
488
|
+
{
|
|
489
|
+
"keywords": [
|
|
490
|
+
"persist"
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
```
|
|
494
|
+
|
|
467
495
|
## phasing
|
|
468
496
|
|
|
469
497
|
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).
|
|
@@ -508,9 +536,9 @@ Rules: CR 702.17b
|
|
|
508
536
|
|
|
509
537
|
## riot
|
|
510
538
|
|
|
511
|
-
As this permanent enters, its controller chooses an additional +1/+1 counter or haste (an enter_choice: `{type: "option", option: "counter" | "haste"}`).
|
|
539
|
+
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.
|
|
512
540
|
|
|
513
|
-
Rules: CR 702.136a, CR 614.12
|
|
541
|
+
Rules: CR 702.136a, CR 702.136b, CR 614.12
|
|
514
542
|
|
|
515
543
|
```json
|
|
516
544
|
{
|
|
@@ -520,6 +548,20 @@ Rules: CR 702.136a, CR 614.12
|
|
|
520
548
|
}
|
|
521
549
|
```
|
|
522
550
|
|
|
551
|
+
## split_second
|
|
552
|
+
|
|
553
|
+
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).
|
|
554
|
+
|
|
555
|
+
Rules: CR 702.61a, CR 702.61b, CR 702.61c
|
|
556
|
+
|
|
557
|
+
```json
|
|
558
|
+
{
|
|
559
|
+
"keywords": [
|
|
560
|
+
"split second"
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
```
|
|
564
|
+
|
|
523
565
|
## start_your_engines
|
|
524
566
|
|
|
525
567
|
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.
|
|
@@ -618,6 +660,20 @@ Rules: CR 702.19b, CR 702.19e
|
|
|
618
660
|
}
|
|
619
661
|
```
|
|
620
662
|
|
|
663
|
+
## undying
|
|
664
|
+
|
|
665
|
+
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.
|
|
666
|
+
|
|
667
|
+
Rules: CR 702.93a, CR 603.10a, CR 603.4
|
|
668
|
+
|
|
669
|
+
```json
|
|
670
|
+
{
|
|
671
|
+
"keywords": [
|
|
672
|
+
"undying"
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
```
|
|
676
|
+
|
|
621
677
|
## vigilance
|
|
622
678
|
|
|
623
679
|
Attacking doesn't cause this creature to tap.
|
data/docs/reference/subtypes.md
CHANGED
|
@@ -151,6 +151,24 @@ Rules: CR 715.3a, CR 715.3c, CR 505.4, CR 715.4, CR 704.5s
|
|
|
151
151
|
}
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
+
## siege
|
|
155
|
+
|
|
156
|
+
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.
|
|
157
|
+
|
|
158
|
+
Rules: CR 310.12, CR 310.9, CR 712.10, CR 608.2g
|
|
159
|
+
|
|
160
|
+
```json
|
|
161
|
+
{
|
|
162
|
+
"types": [
|
|
163
|
+
"battle"
|
|
164
|
+
],
|
|
165
|
+
"subtypes": [
|
|
166
|
+
"siege"
|
|
167
|
+
],
|
|
168
|
+
"defense": 3
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
154
172
|
## swamp
|
|
155
173
|
|
|
156
174
|
Basic land type. A land with this subtype has "{T}: Add {B}."
|