*Made cloning creatures use the standardized moveTo functions.

*Added Jwari Shapeshifter.
This commit is contained in:
jendave
2011-08-06 17:11:26 +00:00
parent 0e3f85176c
commit a6bce91b24
3 changed files with 18 additions and 5 deletions

1
.gitattributes vendored
View File

@@ -2931,6 +2931,7 @@ res/cardsfolder/juvenile_gloomwidow.txt -text svneol=native#text/plain
res/cardsfolder/juzam_djinn.txt -text svneol=native#text/plain
res/cardsfolder/jwar_isle_refuge.txt -text svneol=native#text/plain
res/cardsfolder/jwari_scuttler.txt -text svneol=native#text/plain
res/cardsfolder/jwari_shapeshifter.txt -text svneol=native#text/plain
res/cardsfolder/kabira_crossroads.txt -text svneol=native#text/plain
res/cardsfolder/kabira_vindicator.txt svneol=native#text/plain
res/cardsfolder/kabuto_moth.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Jwari Shapeshifter
ManaCost:1 U
Types:Creature Shapeshifter Ally
Text:You may have CARDNAME enter the battlefield as a copy of any Ally creature on the battlefield.
PT:0/0
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/jwari_shapeshifter.jpg
End

View File

@@ -10148,7 +10148,8 @@ public class CardFactory_Creatures {
//*************** START *********** START **************************
else if(cardName.equals("Clone") || cardName.equals("Vesuvan Doppelganger")
|| cardName.equals("Quicksilver Gargantuan")) {
|| cardName.equals("Quicksilver Gargantuan")
|| cardName.equals("Jwari Shapeshifter")) {
final CardFactory cfact = cf;
final Card[] copyTarget = new Card[1];
final Card[] cloned = new Card[1];
@@ -10198,13 +10199,11 @@ public class CardFactory_Creatures {
cloned[0].addExtrinsicKeyword("At the beginning of your upkeep, you may have this creature become a copy of target creature except it doesn't copy that creature's color. If you do, this creature gains this ability.");
cloned[0].addColor("U", cloned[0], false, true);
}
else if (cardName.equals("Quicksilver Gargantuan")) {
cloned[0].setBaseDefense(7);
cloned[0].setBaseAttack(7);
}
PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, card.getController());
play.add(cloned[0]);
AllZone.GameAction.moveToPlay(cloned[0]);
card.setCurrentlyCloningCard(cloned[0]);
}
}
@@ -10225,6 +10224,10 @@ public class CardFactory_Creatures {
@Override
public void selectCard(Card c, PlayerZone z) {
if( z.is(Constant.Zone.Battlefield) && c.isCreature()) {
if(cardName.equals("Jwari Shapeshifter") && ! c.isType("Ally"))
{
return;
}
copyTarget[0] = c;
stopSetNext(new Input_PayManaCost(copy));
}