diff --git a/res/cards.txt b/res/cards.txt index 754a147df11..6e6d0a01371 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,8 @@ +Tormod's Crypt +0 +Artifact +no text + Sword of Light and Shadow 3 Artifact Equipment @@ -15467,6 +15472,20 @@ U Sorcery Look at the top two cards of your library. Put one of them into your hand and the other on the bottom of your library. +Mycologist +1 W +Creature Human Druid +At the beginning of your upkeep, put a spore counter on Mycologist. +0/2 +Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play. + +Elvish Farmer +1 G +Creature Elf +At the beginning of your upkeep, put a spore counter on Elvish Farmer. +0/2 +Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play. + Vedalken Archmage 2 U U Creature Vedalken Wizard diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index b4ec1e78856..fdc7b7a4d6c 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -21133,6 +21133,43 @@ public class CardFactory implements NewConstants { spell.setBeforePayMana(runtime); } //*************** END ************ END ************************** + //*************** START *********** START ************************** + else if(cardName.equals("Tormod's Crypt")) { + /* + * Tap, Sacrifice Tormod's Crypt: Exile all cards from target player's graveyard. + */ + final Ability_Tap ability = new Ability_Tap(card, "0") { + + private static final long serialVersionUID = -8877371657709894494L; + + @Override + public void resolve() { + if (card.getController().equals(Constant.Player.Computer)) + setTargetPlayer(Constant.Player.Human); + + final String player = getTargetPlayer(); + CardList grave = AllZoneUtil.getPlayerGraveyard(player); + //sac tormod's crypt + AllZone.GameAction.sacrifice(card); + + for(Card c:grave) { + AllZone.GameAction.removeFromGame(c); + } + AllZone.getZone(Constant.Zone.Graveyard, player).reset(); + AllZone.GameAction.shuffle(player); + } + + @Override + public boolean canPlayAI() { + PlayerZone grave = AllZone.getZone(Constant.Zone.Library, Constant.Player.Human); + return grave.size() < 15; + } + + };//SpellAbility + ability.setDescription("Tap, Sacrifice Tormod's Crypt: Exile all cards from target player's graveyard."); + ability.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability)); + card.addSpellAbility(ability); + }//*************** END ************ END ************************** // Cards with Cycling abilities // -1 means keyword "Cycling" not found