From b04ac25bfc8671af379e3a2338604cc55940a3cd Mon Sep 17 00:00:00 2001 From: Northmoc Date: Tue, 18 Oct 2022 19:36:24 -0400 Subject: [PATCH 1/3] teferis_contingency.txt --- .../res/cardsfolder/upcoming/teferis_contingency.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 forge-gui/res/cardsfolder/upcoming/teferis_contingency.txt diff --git a/forge-gui/res/cardsfolder/upcoming/teferis_contingency.txt b/forge-gui/res/cardsfolder/upcoming/teferis_contingency.txt new file mode 100644 index 00000000000..f684e6f09ae --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/teferis_contingency.txt @@ -0,0 +1,12 @@ +Name:Teferi's Contingency +ManaCost:W U U +Types:Instant +A:SP$ Counter | TargetType$ Spell | ValidTgts$ Card | TgtPrompt$ Select target spell | SubAbility$ DBPump | SpellDescription$ Counter target spell. +SVar:DBPump:DB$ PumpAll | Defined$ TargetedController | PumpZone$ Graveyard,Hand,Library | ValidCards$ Targeted.sameName | RememberAllPumped$ True | SubAbility$ DBEffect | StackDescription$ None +SVar:DBEffect:DB$ Effect | RememberObjects$ Remembered | StaticAbilities$ Perpetual | Name$ Teferi's Contingency's Perpetual Effect | Duration$ Permanent | Triggers$ Update | SubAbility$ DBCleanup | SpellDescription$ Each card in its controller's graveyard, hand, and library with the same name as that spell perpetually gains "This spell costs {2} more to cast." +SVar:Perpetual:Mode$ Continuous | Affected$ Card.IsRemembered | AddStaticAbility$ PerpetualRaiseCost | EffectZone$ Command | AffectedZone$ Battlefield,Hand,Graveyard,Exile,Stack,Library,Command | Description$ Each card in its controller's graveyard, hand, and library with the same name as that spell perpetually gains "This spell costs {2} more to cast." +SVar:PerpetualRaiseCost:Mode$ RaiseCost | ValidCard$ Card.Self | Type$ Spell | Amount$ 2 | EffectZone$ All | Description$ This spell costs {2} more to cast. +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:Update:Mode$ ChangesZone | Origin$ Any | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered | Execute$ DBUpdate +SVar:DBUpdate:DB$ UpdateRemember +Oracle:Counter target spell. Each card in its controller's graveyard, hand, and library with the same name as that spell perpetually gains "This spell costs {2} more to cast." From 9ff7f0ae716f0ec93f8a9b909b48624319866f98 Mon Sep 17 00:00:00 2001 From: Northmoc Date: Tue, 18 Oct 2022 19:36:33 -0400 Subject: [PATCH 2/3] lumbering_lightshield.txt fix --- forge-gui/res/cardsfolder/l/lumbering_lightshield.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/forge-gui/res/cardsfolder/l/lumbering_lightshield.txt b/forge-gui/res/cardsfolder/l/lumbering_lightshield.txt index 939d86aa688..fea53875af6 100644 --- a/forge-gui/res/cardsfolder/l/lumbering_lightshield.txt +++ b/forge-gui/res/cardsfolder/l/lumbering_lightshield.txt @@ -3,8 +3,11 @@ ManaCost:1 W Types:Creature Illusion PT:1/4 T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigReveal | TriggerDescription$ When CARDNAME enters the battlefield, target opponent reveals a nonland card at random from their hand. It perpetually gains "This spell costs {1} more to cast." -SVar:TrigReveal:DB$ Reveal | Random$ True | RevealValid$ Card.nonLand | RememberRevealed$ True | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | SubAbility$ DBEffect -SVar:DBEffect:DB$ Effect | RememberObjects$ Remembered | StaticAbilities$ PerpetualRaiseCost | Name$ Lumbering Lightshield's Perpetual Effect | Duration$ Permanent | SubAbility$ DBCleanup -SVar:PerpetualRaiseCost:Mode$ RaiseCost | ValidCard$ Card.IsRemembered | Type$ Spell | Amount$ 1 | EffectZone$ All | Description$ This spell costs {1} more to cast. +SVar:TrigReveal:DB$ Reveal | Random$ True | RevealValid$ Card.nonLand | RememberRevealed$ True | ValidTgts$ Opponent | SubAbility$ DBEffect +SVar:DBEffect:DB$ Effect | RememberObjects$ Remembered | StaticAbilities$ Perpetual | Name$ Lumbering Lightshield's Perpetual Effect | Duration$ Permanent | Triggers$ Update | SubAbility$ DBCleanup +SVar:Perpetual:Mode$ Continuous | Affected$ Card.IsRemembered | AddStaticAbility$ PerpetualRaiseCost | EffectZone$ Command | AffectedZone$ Battlefield,Hand,Graveyard,Exile,Stack,Library,Command | Description$ The revealed card perpetually gains "This spell costs {1} more to cast." +SVar:PerpetualRaiseCost:Mode$ RaiseCost | ValidCard$ Card.Self | Type$ Spell | Amount$ 1 | EffectZone$ All | Description$ This spell costs {1} more to cast. SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:Update:Mode$ ChangesZone | Origin$ Any | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered | Execute$ DBUpdate +SVar:DBUpdate:DB$ UpdateRemember Oracle:When Lumbering Lightshield enters the battelfield, target opponent reveals a nonland card at random from their hand. It perpetually gains "This spell costs {1} more to cast." From ce9ddf0e95ed2104768bdac9ab35751fdaee750e Mon Sep 17 00:00:00 2001 From: Northmoc Date: Tue, 18 Oct 2022 19:38:31 -0400 Subject: [PATCH 3/3] RevealEffect reveal to all when random --- .../src/main/java/forge/game/ability/effects/RevealEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/ability/effects/RevealEffect.java b/forge-game/src/main/java/forge/game/ability/effects/RevealEffect.java index 44d08063b26..87e53bb36d6 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/RevealEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/RevealEffect.java @@ -88,7 +88,7 @@ public class RevealEffect extends SpellAbilityEffect { } } - if (sa.hasParam("RevealToAll")) { + if (sa.hasParam("RevealToAll") || sa.hasParam("Random")) { game.getAction().reveal(revealed, p, false, sa.getParamOrDefault("RevealTitle", "")); } else {