add Acid Rain from Legends

This commit is contained in:
jendave
2011-08-06 04:12:49 +00:00
parent aa4e39d8a6
commit f2c5f5bea3
3 changed files with 30 additions and 0 deletions

View File

@@ -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

View File

@@ -1,3 +1,8 @@
Acid Rain
3 U
Sorcery
Destroy all Forests.
Acidic Soil
2 R
Sorcery

View File

@@ -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) {