diff --git a/.gitattributes b/.gitattributes index bfcca5ee699..1fdcce4f917 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7309,6 +7309,7 @@ res/cardsfolder/s/serras_liturgy.txt svneol=native#text/plain res/cardsfolder/s/serras_sanctum.txt svneol=native#text/plain res/cardsfolder/s/serrated_arrows.txt svneol=native#text/plain res/cardsfolder/s/serrated_biskelion.txt svneol=native#text/plain +res/cardsfolder/s/serum_powder.txt -text res/cardsfolder/s/serum_raker.txt svneol=native#text/plain res/cardsfolder/s/serum_tank.txt svneol=native#text/plain res/cardsfolder/s/serum_visions.txt svneol=native#text/plain diff --git a/res/cardsfolder/s/serum_powder.txt b/res/cardsfolder/s/serum_powder.txt new file mode 100644 index 00000000000..b04aa8b7e5c --- /dev/null +++ b/res/cardsfolder/s/serum_powder.txt @@ -0,0 +1,10 @@ +Name:Serum Powder +ManaCost:3 +Types:Artifact +Text:Any time you could mulligan and CARDNAME is in your hand, you may exile all the cards from your hand, then draw that many cards. (You can do this in addition to taking mulligans.) +A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool. +SVar:RemRandomDeck:True +SVar:RemAIDeck:True +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/serum_powder.jpg +End \ No newline at end of file diff --git a/src/main/java/forge/gui/input/InputMulligan.java b/src/main/java/forge/gui/input/InputMulligan.java index 26f55bc12ed..7f255b9bb86 100644 --- a/src/main/java/forge/gui/input/InputMulligan.java +++ b/src/main/java/forge/gui/input/InputMulligan.java @@ -212,7 +212,16 @@ public class InputMulligan extends Input { @Override public void selectCard(Card c0, PlayerZone z0) { - if (!Constant.Runtime.OLDGUI[0]) { + + if (c0.getName().equals("Serum Powder") && z0.is(Zone.Hand)) { + if (GameActionUtil.showYesNoDialog(c0, "Use " + c0.getName() + "'s ability?")) { + CardList hand = c0.getController().getCardsIn(Zone.Hand); + for (Card c : hand) { + AllZone.getGameAction().exile(c); + } + c0.getController().drawCards(hand.size()); + } + } else if (!Constant.Runtime.OLDGUI[0]) { ((GuiTopLevel) AllZone.getDisplay()).getController().getMatchController().getView().getInputController().remind(); } }