- Added Tormod's Crypt

This commit is contained in:
jendave
2011-08-06 04:44:54 +00:00
parent 325302eb38
commit 9a66b9c825
2 changed files with 56 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
Tormod's Crypt
0
Artifact
no text
Sword of Light and Shadow Sword of Light and Shadow
3 3
Artifact Equipment Artifact Equipment
@@ -15467,6 +15472,20 @@ U
Sorcery 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. 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 Vedalken Archmage
2 U U 2 U U
Creature Vedalken Wizard Creature Vedalken Wizard

View File

@@ -21133,6 +21133,43 @@ public class CardFactory implements NewConstants {
spell.setBeforePayMana(runtime); spell.setBeforePayMana(runtime);
} //*************** END ************ END ************************** } //*************** 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 // Cards with Cycling abilities
// -1 means keyword "Cycling" not found // -1 means keyword "Cycling" not found