mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
add Acid Rain from Legends
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Acid Rain
|
||||
3 U
|
||||
Sorcery
|
||||
Destroy all Forests.
|
||||
|
||||
Acidic Soil
|
||||
2 R
|
||||
Sorcery
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user