From c981b02f24fa98d59af8590821ad20821eb62cbd Mon Sep 17 00:00:00 2001 From: Tim Mocny Date: Fri, 28 Aug 2020 04:29:20 +0000 Subject: [PATCH] ZNR :: Jace, Mirror Mage (SetLoyalty param) --- .../src/main/java/forge/game/card/CardFactory.java | 3 +++ .../cardsfolder/upcoming/ZNR/jace_mirror_mage.txt | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 forge-gui/res/cardsfolder/upcoming/ZNR/jace_mirror_mage.txt diff --git a/forge-game/src/main/java/forge/game/card/CardFactory.java b/forge-game/src/main/java/forge/game/card/CardFactory.java index 22e500ee9cb..74bd7d6ad75 100644 --- a/forge-game/src/main/java/forge/game/card/CardFactory.java +++ b/forge-game/src/main/java/forge/game/card/CardFactory.java @@ -679,6 +679,9 @@ public class CardFactory { if (sa.hasParam("SetToughness")) { state.setBaseToughness(Integer.parseInt(sa.getParam("SetToughness"))); } + if (sa.hasParam("SetLoyalty")) { + state.setBaseLoyalty(String.valueOf(sa.getParam("SetLoyalty"))); + } // triggers to add to clone diff --git a/forge-gui/res/cardsfolder/upcoming/ZNR/jace_mirror_mage.txt b/forge-gui/res/cardsfolder/upcoming/ZNR/jace_mirror_mage.txt new file mode 100644 index 00000000000..870ed1df4d9 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/ZNR/jace_mirror_mage.txt @@ -0,0 +1,14 @@ +Name:Jace, Mirror Mage +ManaCost:1 U U +Types:Legendary Planeswalker Jace +Loyalty:4 +K:Kicker:2 +T:Mode$ ChangesZone | ValidCard$ Card.Self+kicked | Origin$ Any | Destination$ Battlefield | Execute$ TrigCopy | TriggerDescription$ When CARDNAME enters the battlefield, if it was kicked, create a token that's a copy of CARDNAME, except it's not legendary and its starting loyalty is 1. +SVar:TrigCopy:DB$ CopyPermanent | Defined$ Self | NonLegendary$ True | SetLoyalty$ 1 +A:AB$ Scry | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | ScryNum$ 1 | SpellDescription$ Scry 1. +A:AB$ Draw | Cost$ AddCounter<0/LOYALTY> | Planeswalker$ True | NumCards$ 1 | Reveal$ True | RememberDrawn$ True | SubAbility$ DBRemoveCounters | SpellDescription$ Draw a card and reveal it. Remove a number of loyalty counters equal to that card's converted mana cost from CARDNAME. +SVar:DBRemoveCounters:DB$ RemoveCounter | Defined$ Self | CounterType$ LOYALTY | CounterNum$ X | References$ X | SubAbility$ DBCleanup +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:X:Remembered$CardManaCost +DeckHas:Ability$Token +Oracle:Kicker {2}\nWhen Jace, Mirror Mage enters the battlefield, if Jace was kicked, create a token that's a copy of Jace, Mirror Mage, except it's not legendary and its starting loyalty is 1.\n[+1]: Scry 1.\n[0]: Draw a card and reveal it. Remove a number of loyalty counters equal to that card's converted mana cost from Jace, Mirror Mage.