mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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_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_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
|
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
|
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
|
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
|
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
|
Skirk Prospector
|
||||||
R
|
R
|
||||||
Creature Goblin
|
Creature Goblin
|
||||||
|
|||||||
@@ -1019,6 +1019,7 @@ Razorfoot Griffin
|
|||||||
Razortooth Rats
|
Razortooth Rats
|
||||||
Reaping the Graves
|
Reaping the Graves
|
||||||
Reckless Scholar
|
Reckless Scholar
|
||||||
|
Reclaim
|
||||||
Recover
|
Recover
|
||||||
Red Cliffs Armada
|
Red Cliffs Armada
|
||||||
Redwood Treefolk
|
Redwood Treefolk
|
||||||
|
|||||||
@@ -12873,7 +12873,8 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** 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) {
|
final SpellAbility spell = new Spell(card) {
|
||||||
private static final long serialVersionUID = -1771016287736735113L;
|
private static final long serialVersionUID = -1771016287736735113L;
|
||||||
|
|
||||||
@@ -12884,7 +12885,10 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
if(AllZone.GameAction.isCardInZone(getTargetCard(), graveyard)) {
|
if(AllZone.GameAction.isCardInZone(getTargetCard(), graveyard)) {
|
||||||
graveyard.remove(getTargetCard());
|
graveyard.remove(getTargetCard());
|
||||||
hand.add(getTargetCard());
|
if (cardName.equals("Regrowth"))
|
||||||
|
hand.add(getTargetCard());
|
||||||
|
else if (cardName.equals("Reclaim"))
|
||||||
|
AllZone.GameAction.moveToTopOfLibrary(getTargetCard());
|
||||||
}
|
}
|
||||||
}//resolve()
|
}//resolve()
|
||||||
|
|
||||||
@@ -12903,7 +12907,13 @@ public class CardFactory implements NewConstants {
|
|||||||
Object o = AllZone.Display.getChoiceOptional("Select target card", graveyard.getCards());
|
Object o = AllZone.Display.getChoiceOptional("Select target card", graveyard.getCards());
|
||||||
if(o == null) stop();
|
if(o == null) stop();
|
||||||
else {
|
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);
|
spell.setTargetCard((Card) o);
|
||||||
if(this.isFree())
|
if(this.isFree())
|
||||||
{
|
{
|
||||||
@@ -12936,7 +12946,6 @@ public class CardFactory implements NewConstants {
|
|||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Commune with Nature")) {
|
else if(cardName.equals("Commune with Nature")) {
|
||||||
SpellAbility spell = new Spell(card) {
|
SpellAbility spell = new Spell(card) {
|
||||||
|
|||||||
Reference in New Issue
Block a user