fix Clone not copying card pic and set info.

This commit is contained in:
jendave
2011-08-06 14:23:52 +00:00
parent dcc2f747fb
commit 93f51b8ca0

View File

@@ -5349,7 +5349,9 @@ public class CardFactory_Creatures {
//mana tap ability //mana tap ability
final SpellAbility ability = new Ability_Activated(card, abCost, null) { final SpellAbility ability = new Ability_Activated(card, abCost, null) {
@Override private static final long serialVersionUID = 5443609178720006665L;
@Override
public boolean canPlayAI() { public boolean canPlayAI() {
Card[] hand = AllZone.Computer_Hand.getCards(); Card[] hand = AllZone.Computer_Hand.getCards();
return CardFactoryUtil.AI_doesCreatureAttack(card) && (hand.length > 3); return CardFactoryUtil.AI_doesCreatureAttack(card) && (hand.length > 3);
@@ -13294,6 +13296,8 @@ public class CardFactory_Creatures {
cloned[0] = cfact.getCard(copyTarget[0].getName(), card.getController()); cloned[0] = cfact.getCard(copyTarget[0].getName(), card.getController());
cloned[0].setCloneOrigin(card.getName()); cloned[0].setCloneOrigin(card.getName());
cloned[0].addLeavesPlayCommand(leaves); cloned[0].addLeavesPlayCommand(leaves);
cloned[0].setCurSetCode(copyTarget[0].getCurSetCode());
cloned[0].setImageFilename(copyTarget[0].getImageFilename());
PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, card.getController()); PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, card.getController());
play.add(cloned[0]); play.add(cloned[0]);
} }
@@ -13321,6 +13325,7 @@ public class CardFactory_Creatures {
copy.setBeforePayMana(runtime); copy.setBeforePayMana(runtime);
}//*************** END ************ END ************************** }//*************** END ************ END **************************
//*************** START *********** START ************************** //*************** START *********** START **************************
else if(cardName.equals("Quicksilver Gargantuan")) { else if(cardName.equals("Quicksilver Gargantuan")) {
final CardFactory cfact = cf; final CardFactory cfact = cf;