- Converted Nature's Resurgence to script.

This commit is contained in:
jendave
2011-08-07 00:08:41 +00:00
parent 5d9428fb45
commit 56a1f6f761
2 changed files with 5 additions and 30 deletions

View File

@@ -1,7 +1,11 @@
Name:Nature's Resurgence Name:Nature's Resurgence
ManaCost:2 G G ManaCost:2 G G
Types:Sorcery Types:Sorcery
Text:Each player draws a card for each creature card in his or her graveyard. Text:no text
A:SP$ Draw | Cost$ 2 G G | Defined$ You | NumCards$ X | SubAbility$ SVar=DBDrawOpp | SpellDescription$ Each player draws a card for each creature card in his or her graveyard.
SVar:DBDrawOpp:DB$Draw | Defined$ Opponent | NumCards$ Y
SVar:X:Count$TypeInYourYard.Creature
SVar:Y:Count$TypeInOppYard.Creature
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/natures_resurgence.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/natures_resurgence.jpg
SetInfo:WTH|Rare|http://magiccards.info/scans/en/wl/79.jpg SetInfo:WTH|Rare|http://magiccards.info/scans/en/wl/79.jpg

View File

@@ -3628,35 +3628,6 @@ public class CardFactory_Sorceries {
}//*************** END ************ END ************************** }//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Nature's Resurgence")) {
/*
* Each player draws a card for each creature card in his
* or her graveyard.
*/
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = 5736340966381828725L;
@Override
public void resolve() {
int human = AllZoneUtil.getPlayerGraveyard(AllZone.HumanPlayer).filter(AllZoneUtil.creatures).size();
int comp = AllZoneUtil.getPlayerGraveyard(AllZone.ComputerPlayer).filter(AllZoneUtil.creatures).size();
AllZone.HumanPlayer.drawCards(human);
AllZone.ComputerPlayer.drawCards(comp);
}//resolve()
@Override
public boolean canPlayAI() {
return AllZoneUtil.getPlayerGraveyard(AllZone.ComputerPlayer).filter(AllZoneUtil.creatures).size() > 1;
}
};//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("All Hallow's Eve")) { else if(cardName.equals("All Hallow's Eve")) {