diff --git a/res/card-pictures.txt b/res/card-pictures.txt index a4e8e63d08c..e312fc7086f 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 +acid_rain.jpg http://www.wizards.com/global/images/magic/general/acid_rain.jpg acidic_soil.jpg http://www.wizards.com/global/images/magic/general/acidic_soil.jpg dissipate.jpg http://www.wizards.com/global/images/magic/general/dissipate.jpg all_is_dust.jpg http://www.wizards.com/global/images/magic/general/all_is_dust.jpg diff --git a/res/cards.txt b/res/cards.txt index 0bcbaec7ce0..16fdc980cbe 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,8 @@ +Acid Rain +3 U +Sorcery +Destroy all Forests. + Acidic Soil 2 R Sorcery diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index acc29cb7a3a..7937497b5be 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -18974,6 +18974,30 @@ public class CardFactory implements NewConstants { card.addSpellAbility(spell); }// *************** END ************ END ************************** + //*************** START *********** START ************************** + else if(cardName.equals("Acid Rain")) { + final SpellAbility spell = new Spell(card) { + private static final long serialVersionUID = -5709523778051144200L; + + @Override + public void resolve() { + CardList forests = AllZoneUtil.getTypeInPlay("Forest"); + for(int i = 0; i < forests.size(); i++) { + AllZone.GameAction.destroy(forests.get(i)); + } + }//resolve() + + @Override + public boolean canPlayAI() { + CardList forests = AllZoneUtil.getPlayerTypeInPlay(Constant.Player.Human, "Forest"); + return 3 < forests.size(); + } + };//SpellAbility + spell.setStackDescription(card.getName() + " - destroy all Forests."); + card.clearSpellAbility(); + card.addSpellAbility(spell); + }//*************** END ************ END ************************** + // Cards with Cycling abilities // -1 means keyword "Cycling" not found if(hasKeyword(card, "Cycling") != -1) {