add Body Double (from Planar Chaos)

This commit is contained in:
slapshot5
2011-10-10 03:09:27 +00:00
parent 4344cac411
commit 6d46465225
3 changed files with 38 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -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

View 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

View File

@@ -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.");
copy.setBeforePayMana(runtime);
if (cardName.equals("Body Double")) {
copy.setBeforePayMana(graveyardRuntime);
}
else {
copy.setBeforePayMana(runtime);
}
}//*************** END ************ END **************************