* Morph - Fixed that copying a morph creature always copied the creature like it was face down.

This commit is contained in:
LevelX2 2014-10-29 15:16:42 +01:00
parent d0c055c5fd
commit d8d25dc00a
2 changed files with 36 additions and 3 deletions

View file

@ -292,4 +292,37 @@ public class MorphTest extends CardTestPlayerBase {
assertPowerToughness(playerA, "Ponyback Brigade", 1,1);
}
/**
* Clone a Morph creature that was cast face down and meanwhile was turned face up
*
*/
@Test
public void testCloneFaceUpMorphEffect() {
// Sagu Mauler 6/6 - Creature - Beast
// Trample, hexproof
// Morph {3}{G}{B} (You may cast this card face down as a 2/2 creature for . Turn it face up any time for its morph cost.)
addCard(Zone.HAND, playerA, "Sagu Mauler");
addCard(Zone.HAND, playerA, "Clone");
addCard(Zone.BATTLEFIELD, playerA, "Island", 2);
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Sagu Mauler");
setChoice(playerA, "Yes"); // cast it face down as 2/2 creature
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "{3}{G}{U}: Turn this face-down permanent face up.");
castSpell(5, PhaseStep.PRECOMBAT_MAIN, playerA, "Clone");
setChoice(playerA, "Sagu Mauler");
setStopAt(5, PhaseStep.END_COMBAT);
execute();
assertLife(playerB, 20);
assertHandCount(playerA, "Sagu Mauler", 0);
assertHandCount(playerA, "Clone", 0);
assertPermanentCount(playerA, "Sagu Mauler", 2);
assertPowerToughness(playerA, "Sagu Mauler", 6,6,Filter.ComparisonScope.Any);
}
}

View file

@ -1262,7 +1262,7 @@ public abstract class GameImpl implements Game, Serializable {
//getState().addCard(permanent);
permanent.reset(this);
if (copyFromPermanent.isMorphCard()) {
if (copyFromPermanent.isMorphCard() && copyFromPermanent.isFaceDown()) {
MorphAbility.setPermanentToMorph(permanent);
}
permanent.assignNewId();