From da35fc888a6514860f394fb5bf80a554564e834c Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 04:03:40 +0000 Subject: [PATCH] add Dreamstone Hedron from Rise of the Eldrazi --- res/card-pictures.txt | 1 + res/cards.txt | 6 ++++++ src/forge/CardFactory.java | 26 ++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/res/card-pictures.txt b/res/card-pictures.txt index f592a05fdbe..b187cae027d 100644 --- a/res/card-pictures.txt +++ b/res/card-pictures.txt @@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg +dreamstone_hedron.jpg http://www.wizards.com/global/images/magic/general/dreamstone_hedron.jpg beastbreaker_of_bala_ged.jpg http://www.wizards.com/global/images/magic/general/beastbreaker_of_bala_ged.jpg hedron_matrix.jpg http://www.wizards.com/global/images/magic/general/hedron_matrix.jpg perish_the_thought.jpg http://www.wizards.com/global/images/magic/general/perish_the_thought.jpg diff --git a/res/cards.txt b/res/cards.txt index cd08db9a960..e796841fbe6 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,9 @@ +Dreamstone Hedron +6 +Artifact +no text +tap: add 3 + Beastbreaker of Bala Ged 1 G Creature Human Warrior diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index 827eb865dd8..b1dad61faf1 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -18475,6 +18475,32 @@ public class CardFactory implements NewConstants { card.addSpellAbility(spell); }//*************** END ************ END ************************** + //*************** START *********** START ************************** + else if(cardName.equals("Dreamstone Hedron")) { + final Ability_Tap ability = new Ability_Tap(card, "3") { + private static final long serialVersionUID = 4493940591347356773L; + + @Override + public boolean canPlayAI() { + PlayerZone lib = AllZone.getZone(Constant.Zone.Library, Constant.Player.Computer); + return lib.size() > 0; + } + + @Override + public void resolve() { + final String player = card.getController(); + AllZone.GameAction.sacrifice(card); + AllZone.GameAction.drawCard(player); + AllZone.GameAction.drawCard(player); + AllZone.GameAction.drawCard(player); + } + }; + ability.setDescription("3, tap: Sacrifice Dreamstone Hedron: Draw 3 cards."); + ability.setStackDescription(cardName+" - Draw 3 cards."); + ability.setBeforePayMana(new Input_PayManaCost(ability)); + card.addSpellAbility(ability); + }//*************** END ************ END ************************** + // Cards with Cycling abilities // -1 means keyword "Cycling" not found if(hasKeyword(card, "Cycling") != -1) {