mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
*Made cloning creatures use the standardized moveTo functions.
*Added Jwari Shapeshifter.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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/juzam_djinn.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/jwar_isle_refuge.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_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_crossroads.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/kabira_vindicator.txt svneol=native#text/plain
|
res/cardsfolder/kabira_vindicator.txt svneol=native#text/plain
|
||||||
res/cardsfolder/kabuto_moth.txt -text svneol=native#text/plain
|
res/cardsfolder/kabuto_moth.txt -text svneol=native#text/plain
|
||||||
|
|||||||
9
res/cardsfolder/jwari_shapeshifter.txt
Normal file
9
res/cardsfolder/jwari_shapeshifter.txt
Normal 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
|
||||||
@@ -10148,7 +10148,8 @@ public class CardFactory_Creatures {
|
|||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Clone") || cardName.equals("Vesuvan Doppelganger")
|
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 CardFactory cfact = cf;
|
||||||
final Card[] copyTarget = new Card[1];
|
final Card[] copyTarget = new Card[1];
|
||||||
final Card[] cloned = new Card[1];
|
final Card[] cloned = new Card[1];
|
||||||
@@ -10197,14 +10198,12 @@ public class CardFactory_Creatures {
|
|||||||
if(cardName.equals("Vesuvan Doppelganger")) {
|
if(cardName.equals("Vesuvan Doppelganger")) {
|
||||||
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].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);
|
cloned[0].addColor("U", cloned[0], false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (cardName.equals("Quicksilver Gargantuan")) {
|
else if (cardName.equals("Quicksilver Gargantuan")) {
|
||||||
cloned[0].setBaseDefense(7);
|
cloned[0].setBaseDefense(7);
|
||||||
cloned[0].setBaseAttack(7);
|
cloned[0].setBaseAttack(7);
|
||||||
}
|
}
|
||||||
PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, card.getController());
|
AllZone.GameAction.moveToPlay(cloned[0]);
|
||||||
play.add(cloned[0]);
|
|
||||||
card.setCurrentlyCloningCard(cloned[0]);
|
card.setCurrentlyCloningCard(cloned[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10225,6 +10224,10 @@ public class CardFactory_Creatures {
|
|||||||
@Override
|
@Override
|
||||||
public void selectCard(Card c, PlayerZone z) {
|
public void selectCard(Card c, PlayerZone z) {
|
||||||
if( z.is(Constant.Zone.Battlefield) && c.isCreature()) {
|
if( z.is(Constant.Zone.Battlefield) && c.isCreature()) {
|
||||||
|
if(cardName.equals("Jwari Shapeshifter") && ! c.isType("Ally"))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
copyTarget[0] = c;
|
copyTarget[0] = c;
|
||||||
stopSetNext(new Input_PayManaCost(copy));
|
stopSetNext(new Input_PayManaCost(copy));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user