mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
add Body Double (from Planar Chaos)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -872,6 +872,7 @@ res/cardsfolder/b/blurred_mongoose.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/boa_constrictor.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/boar_umbra.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/boartusk_liege.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/body_double.txt -text
|
||||
res/cardsfolder/b/body_of_jukai.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/bog_glider.txt svneol=native#text/plain
|
||||
res/cardsfolder/b/bog_gnarr.txt svneol=native#text/plain
|
||||
|
||||
9
res/cardsfolder/b/body_double.txt
Normal file
9
res/cardsfolder/b/body_double.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Name:Body Double
|
||||
ManaCost:4 U
|
||||
Types:Creature Shapeshifter
|
||||
Text:You may have CARDNAME enter the battlefield as a copy of any creature card in a graveyard.
|
||||
PT:0/0
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/body_double.jpg
|
||||
End
|
||||
@@ -2278,7 +2278,8 @@ public class CardFactory_Creatures {
|
||||
|| cardName.equals("Quicksilver Gargantuan")
|
||||
|| cardName.equals("Jwari Shapeshifter")
|
||||
|| cardName.equals("Phyrexian Metamorph")
|
||||
|| cardName.equals("Phantasmal Image")) {
|
||||
|| cardName.equals("Phantasmal Image")
|
||||
|| cardName.equals("Body Double")) {
|
||||
final CardFactoryInterface cfact = cf;
|
||||
final Card[] copyTarget = new Card[1];
|
||||
final Card[] cloned = new Card[1];
|
||||
@@ -2403,11 +2404,36 @@ public class CardFactory_Creatures {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Input graveyardRuntime = new Input() {
|
||||
private static final long serialVersionUID = 6950318443268022876L;
|
||||
|
||||
@Override
|
||||
public void showMessage() {
|
||||
String message = "Select a creature in a graveyard";
|
||||
CardList choices = AllZoneUtil.getCardsIn(Zone.Graveyard);
|
||||
Object o = GuiUtils.getChoiceOptional(message, choices.toArray());
|
||||
if (null == o) {
|
||||
stop();
|
||||
}
|
||||
else {
|
||||
Card c = (Card) o;
|
||||
copyTarget[0] = c;
|
||||
stopSetNext(new Input_PayManaCost(copy));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
|
||||
card.clearFirstSpell();
|
||||
card.addSpellAbility(copy);
|
||||
copy.setStackDescription(cardName + " - enters the battlefield as a copy of selected card.");
|
||||
if (cardName.equals("Body Double")) {
|
||||
copy.setBeforePayMana(graveyardRuntime);
|
||||
}
|
||||
else {
|
||||
copy.setBeforePayMana(runtime);
|
||||
}
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user