- Converted Acidic Soil to script.

This commit is contained in:
jendave
2011-08-07 00:08:24 +00:00
parent 14fa8cc0cb
commit 79455f5429
2 changed files with 6 additions and 42 deletions

View File

@@ -1,7 +1,11 @@
Name:Acidic Soil
ManaCost:2 R
Types:Sorcery
Text:Acidic Soil deals damage to each player equal to the number of lands he or she controls.
Text:no text
A:SP$ DealDamage | Cost$ 2 R | Defined$ You | NumDmg$ X | SubAbility$ SVar=DBDamageOpp | SpellDescription$ CARDNAME deals damage to each player equal to the number of lands he or she controls.
SVar:DBDamageOpp:DB$DealDamage | Defined$ Opponent | NumDmg$ Y
SVar:X:Count$TypeYouCtrl.Land
SVar:Y:Count$TypeOppCtrl.Land
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/acidic_soil.jpg
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/172.jpg

View File

@@ -2822,47 +2822,7 @@ public class CardFactory_Sorceries {
card.clearFirstSpellAbility();
card.addSpellAbility(spell);
}// *************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Acidic Soil")) {
/*
* Acidic Soil deals damage to each player equal to the number of
* lands he or she controls.
*/
SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = 8555498267738686288L;
@Override
public void resolve() {
CardList humanLands = AllZoneUtil.getPlayerLandsInPlay(AllZone.HumanPlayer);
CardList compLands = AllZoneUtil.getPlayerLandsInPlay(AllZone.ComputerPlayer);
AllZone.ComputerPlayer.addDamage(compLands.size(), card);
AllZone.HumanPlayer.addDamage(humanLands.size(), card);
}// resolve()
@Override
public boolean canPlayAI() {
CardList human = AllZoneUtil.getPlayerLandsInPlay(AllZone.HumanPlayer);
CardList comp = AllZoneUtil.getPlayerLandsInPlay(AllZone.ComputerPlayer);
if(AllZone.HumanPlayer.getLife() <= human.size() ) {
return true;
}
if( AllZone.ComputerPlayer.getLife() >= comp.size() && human.size() > comp.size()+2 ) {
return true;
}
return false;
}
};// SpellAbility
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
card.clearFirstSpellAbility();
card.addSpellAbility(spell);
}// *************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Explosive Revelation")) {