From 7bc14a526db564c47ecd38a77ceb6d9db770058b Mon Sep 17 00:00:00 2001 From: swordshine Date: Tue, 9 Jan 2018 12:14:19 +0800 Subject: [PATCH] - Added Azor's Gateway --- .../java/forge/game/card/CardFactoryUtil.java | 8 ++++++ .../azors_gateway_sanctum_of_the_sun.txt | 27 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 forge-gui/res/cardsfolder/upcoming/azors_gateway_sanctum_of_the_sun.txt diff --git a/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java b/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java index ca8d1d7268a..e31294469a9 100644 --- a/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java +++ b/forge-game/src/main/java/forge/game/card/CardFactoryUtil.java @@ -1662,6 +1662,14 @@ public class CardFactoryUtil { } + if (string.startsWith("DifferentCMC")) { + final Set diffCMC = new HashSet<>(); + for (final Card card : paidList) { + diffCMC.add(card.getCMC()); + }System.out.println(diffCMC); + return diffCMC.size(); + } + if (string.startsWith("SumCMC")) { int sumCMC = 0; for(Card c : paidList) { diff --git a/forge-gui/res/cardsfolder/upcoming/azors_gateway_sanctum_of_the_sun.txt b/forge-gui/res/cardsfolder/upcoming/azors_gateway_sanctum_of_the_sun.txt new file mode 100644 index 00000000000..e1018427e82 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/azors_gateway_sanctum_of_the_sun.txt @@ -0,0 +1,27 @@ +Name:Azor's Gateway +ManaCost:2 +Types:Legendary Artifact +A:AB$ Draw | Cost$ 1 T | NumCards$ 1 | SubAbility$ DBExile | SpellDescription$ Draw a card, then exile a card from your hand. If cards with five or more different converted mana costs are exiled with CARDNAME, you gain 5 life, untap CARDNAME, and transform it. +SVar:DBExile:DB$ ChangeZone | Origin$ Hand | Destination$ Exile | ChangeType$ Card | ChangeNum$ 1 | Mandatory$ True | RememberChanged$ True | SubAbility$ DBGainLife +SVar:DBGainLife:DB$ GainLife | LifeAmount$ 5 | SubAbility$ DBUntap | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE5 | References$ Y +SVar:DBUntap:DB$ Untap | Defined$ Self | SubAbility$ DBTransform | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE5 | References$ Y +SVar:DBTransform:DB$ SetState | Defined$ Self | Mode$ Transform | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE5 | References$ Y +T:Mode$ ChangesZone | Origin$ Exile | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered+ExiledWithSource | Execute$ DBForget +SVar:DBForget:DB$ Pump | ForgetObjects$ TriggeredCard +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | Static$ True | ValidCard$ Card.Self | Execute$ DBCleanup +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:Y:Remembered$DifferentCMC +SVar:Picture:http://www.wizards.com/global/images/magic/general/azors_gateway.jpg +AlternateMode:DoubleFaced +Oracle:{1}, {T}: Draw a card, then exile a card from your hand. If cards with five or more different converted mana costs are exiled with Azor's Gateway, you gain 5 life, untap Azor's Gateway, and transform it. + +ALTERNATE + +Name:Sanctum of the Sun +ManaCost:no cost +Colors:colorless +Types:Land +A:AB$ Mana | Cost$ T | Produced$ Any | Amount$ X | References$ X | SpellDescription$ Add X mana of any one color to your mana pool, where X is your life total. +SVar:X:Count$YourLifeTotal +SVar:Picture:http://www.wizards.com/global/images/magic/general/sanctum_of_the_sun.jpg +Oracle:(Transforms from Azor's Gateway.)\n{T}: Add X mana of any one color to your mana pool, where X is your life total.