From 709714882f85b00b52fd7687b3db230d5f0d3f6b Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 03:19:42 +0000 Subject: [PATCH] - Added Stoneforge Mystic. --- res/cards.txt | 6 ++ src/forge/CardFactory_Creatures.java | 118 +++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/res/cards.txt b/res/cards.txt index c5fe928492d..331af8c2fbf 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,9 @@ +Stoneforge Mystic +1 W +Creature Kor Artificer +When Stoneforge Mystic enters the battlefield, you may search your library for an Equipment card, reveal it, put it into your hand, then shuffle your library. +1/2 + Dragonmaster Outcast R Creature Human Shaman diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 7d7cd6993f3..5b5dd65c41e 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -18661,6 +18661,124 @@ public class CardFactory_Creatures { card.addComesIntoPlayCommand(comesIntoPlay); }//*************** END ************ END ************************** + + //*************** START *********** START ************************** + else if(cardName.equals("Stoneforge Mystic")) + { + final SpellAbility ability = new Ability(card, "0") + { + public void resolve() + { + PlayerZone lib = AllZone.getZone(Constant.Zone.Library, card.getController()); + PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, card.getController()); + if(AllZone.GameAction.isCardInZone(getTargetCard(), lib)) + { + Card c = getTargetCard(); + AllZone.GameAction.shuffle(card.getController()); + lib.remove(c); + hand.add(c); + + } + }//resolve() + }; + Command intoPlay = new Command() + { + + private static final long serialVersionUID = 4022442363194287539L; + + public void execute() + { + PlayerZone lib = AllZone.getZone(Constant.Zone.Library, card.getController()); + CardList cards = new CardList(lib.getCards()); + CardList arts = new CardList(); + + for (int i=0;i