mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Added Reclaim, sharing code block with cousin Regrowth
This commit is contained in:
@@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
|
||||
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
|
||||
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||
reclaim.jpg http://www.wizards.com/global/images/magic/general/reclaim.jpg
|
||||
skirk_prospector.jpg http://www.wizards.com/global/images/magic/general/skirk_prospector.jpg
|
||||
sejiri_merfolk.jpg http://www.wizards.com/global/images/magic/general/sejiri_merfolk.jpg
|
||||
phyrexian_tower.jpg http://www.wizards.com/global/images/magic/general/phyrexian_tower.jpg
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Reclaim
|
||||
G
|
||||
Instant
|
||||
Put target card from your graveyard on top of your library.
|
||||
|
||||
Skirk Prospector
|
||||
R
|
||||
Creature Goblin
|
||||
|
||||
@@ -1019,6 +1019,7 @@ Razorfoot Griffin
|
||||
Razortooth Rats
|
||||
Reaping the Graves
|
||||
Reckless Scholar
|
||||
Reclaim
|
||||
Recover
|
||||
Red Cliffs Armada
|
||||
Redwood Treefolk
|
||||
|
||||
@@ -12873,7 +12873,8 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Regrowth")) {
|
||||
else if(cardName.equals("Regrowth") || cardName.equals("Reclaim")) {
|
||||
// added cousin Reclaim since 90% of the code is shared
|
||||
final SpellAbility spell = new Spell(card) {
|
||||
private static final long serialVersionUID = -1771016287736735113L;
|
||||
|
||||
@@ -12884,7 +12885,10 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
if(AllZone.GameAction.isCardInZone(getTargetCard(), graveyard)) {
|
||||
graveyard.remove(getTargetCard());
|
||||
hand.add(getTargetCard());
|
||||
if (cardName.equals("Regrowth"))
|
||||
hand.add(getTargetCard());
|
||||
else if (cardName.equals("Reclaim"))
|
||||
AllZone.GameAction.moveToTopOfLibrary(getTargetCard());
|
||||
}
|
||||
}//resolve()
|
||||
|
||||
@@ -12903,7 +12907,13 @@ public class CardFactory implements NewConstants {
|
||||
Object o = AllZone.Display.getChoiceOptional("Select target card", graveyard.getCards());
|
||||
if(o == null) stop();
|
||||
else {
|
||||
spell.setStackDescription("Return " + o + " to its owner's hand");
|
||||
String location = "";
|
||||
if (cardName.equals("Regrowth"))
|
||||
location = "owner's hand";
|
||||
else if (cardName.equals("Reclaim"))
|
||||
location = "top of owner's library";
|
||||
|
||||
spell.setStackDescription("Return " + o + " to " + location);
|
||||
spell.setTargetCard((Card) o);
|
||||
if(this.isFree())
|
||||
{
|
||||
@@ -12934,8 +12944,7 @@ public class CardFactory implements NewConstants {
|
||||
spell.setBeforePayMana(runtime);
|
||||
card.clearSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Commune with Nature")) {
|
||||
|
||||
Reference in New Issue
Block a user