add Serum Powder (from Darksteel)

This commit is contained in:
slapshot5
2011-12-11 05:09:43 +00:00
parent 49e4ab6bdd
commit 1058c103eb
3 changed files with 21 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -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

View File

@@ -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

View File

@@ -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();
}
}