mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +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_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
|
||||
|
||||
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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user