mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Converted Nature's Resurgence to script.
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
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.
|
||||
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:Picture:http://www.wizards.com/global/images/magic/general/natures_resurgence.jpg
|
||||
SetInfo:WTH|Rare|http://magiccards.info/scans/en/wl/79.jpg
|
||||
|
||||
@@ -3628,35 +3628,6 @@ public class CardFactory_Sorceries {
|
||||
}//*************** 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 **************************
|
||||
else if(cardName.equals("All Hallow's Eve")) {
|
||||
|
||||
Reference in New Issue
Block a user