mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
Altered ego X value should be separate
This commit is contained in:
parent
18600a53a9
commit
177f72c8d8
4 changed files with 41 additions and 7 deletions
|
|
@ -53,4 +53,34 @@ public class AlteredEgoTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Altered Ego", 1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* If the chosen creature has {X} in its mana cost, that X is considered to be 0.
|
||||
* The value of X in Altered Ego’s last ability will be whatever value was chosen for X while casting Altered Ego.
|
||||
* (2016-04-08)
|
||||
*/
|
||||
@Test
|
||||
public void copyXCreature() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Wastes", 2);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Tropical Island", 7);
|
||||
addCard(Zone.HAND, playerA, "Endless One"); // {X}, ETB with X +1/+1 counters, 0/0
|
||||
addCard(Zone.HAND, playerB, "Altered Ego"); // {X}{2}{G}{U}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Endless One");
|
||||
setChoice(playerA, "X=2");
|
||||
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Altered Ego");
|
||||
setChoice(playerB, "X=3");
|
||||
setChoice(playerB, true); // use copy
|
||||
setChoice(playerB, "Endless One"); // copy target
|
||||
setChoice(playerB, ""); // Order place counters effects
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(2, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Endless One", 1);
|
||||
assertPowerToughness(playerA, "Endless One", 2, 2);
|
||||
assertPermanentCount(playerB, "Endless One", 1);
|
||||
assertPowerToughness(playerB, "Endless One", 3, 3); //The X should not be copied
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue