diff --git a/.gitattributes b/.gitattributes index ae893e8e2b4..42e3f9c28f5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/res/cardsfolder/natures_resurgence.txt b/res/cardsfolder/natures_resurgence.txt new file mode 100644 index 00000000000..66ba19fb89c --- /dev/null +++ b/res/cardsfolder/natures_resurgence.txt @@ -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 diff --git a/src/forge/CardFactory_Sorceries.java b/src/forge/CardFactory_Sorceries.java index f8ab3a38b0b..d910fe51e09 100644 --- a/src/forge/CardFactory_Sorceries.java +++ b/src/forge/CardFactory_Sorceries.java @@ -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 }