add Nature's Resurgence (from Weatherlight)

This commit is contained in:
jendave
2011-08-06 09:51:17 +00:00
parent 30062878e3
commit 61f7a194a1
3 changed files with 36 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -2882,6 +2882,7 @@ res/cardsfolder/naturalize.txt -text svneol=native#text/plain
res/cardsfolder/natures_claim.txt -text svneol=native#text/plain
res/cardsfolder/natures_cloak.txt -text svneol=native#text/plain
res/cardsfolder/natures_lore.txt -text svneol=native#text/plain
res/cardsfolder/natures_resurgence.txt -text svneol=native#text/plain
res/cardsfolder/natures_ruin.txt -text svneol=native#text/plain
res/cardsfolder/natures_spiral.txt -text svneol=native#text/plain
res/cardsfolder/naya_battlemage.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,7 @@
Name:Nature's Resurgence
ManaCost:2 G G
Types:Sorcery
Text:Each player draws a card for each creature card in his or her graveyard.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/natures_resurgence.jpg
End

View File

@@ -7962,7 +7962,7 @@ public class CardFactory_Sorceries {
card.setSVar("PlayMain1", "TRUE");
}//*************** END ************ END **************************
//*************** START *********** START **************************
//*************** START *********** START **************************
if(cardName.equals("Winds of Change")) {
/*
* Each player shuffles the cards from his or her hand into
@@ -8008,6 +8008,33 @@ public class CardFactory_Sorceries {
card.addSpellAbility(spell);
}//*************** END ************ END **************************
//*************** START *********** START **************************
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
card.clearSpellAbility();
card.addSpellAbility(spell);
}//*************** END ************ END **************************
return card;
}//getCard
}