mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Converted Acidic Soil to script.
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
Name:Acidic Soil
|
Name:Acidic Soil
|
||||||
ManaCost:2 R
|
ManaCost:2 R
|
||||||
Types:Sorcery
|
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:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/acidic_soil.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/acidic_soil.jpg
|
||||||
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/172.jpg
|
SetInfo:USG|Uncommon|http://magiccards.info/scans/en/us/172.jpg
|
||||||
|
|||||||
@@ -2822,47 +2822,7 @@ public class CardFactory_Sorceries {
|
|||||||
card.clearFirstSpellAbility();
|
card.clearFirstSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}// *************** END ************ END **************************
|
}// *************** 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 **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Explosive Revelation")) {
|
else if(cardName.equals("Explosive Revelation")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user