mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
add Nature's Resurgence (from Weatherlight)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_claim.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/natures_cloak.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_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_ruin.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/natures_spiral.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
|
res/cardsfolder/naya_battlemage.txt -text svneol=native#text/plain
|
||||||
|
|||||||
7
res/cardsfolder/natures_resurgence.txt
Normal file
7
res/cardsfolder/natures_resurgence.txt
Normal 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
|
||||||
@@ -7962,7 +7962,7 @@ public class CardFactory_Sorceries {
|
|||||||
card.setSVar("PlayMain1", "TRUE");
|
card.setSVar("PlayMain1", "TRUE");
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
if(cardName.equals("Winds of Change")) {
|
if(cardName.equals("Winds of Change")) {
|
||||||
/*
|
/*
|
||||||
* Each player shuffles the cards from his or her hand into
|
* Each player shuffles the cards from his or her hand into
|
||||||
@@ -8008,6 +8008,33 @@ public class CardFactory_Sorceries {
|
|||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** 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;
|
return card;
|
||||||
}//getCard
|
}//getCard
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user