- Temporarily reverted 30117:30118 (related to Echo update) because the current new implementation misbehaves (please see the related forum post) and I could not fix the rule interaction bug in a timely manner.

- Feel free to revert this commit and continue working on the new Echo implementation.
This commit is contained in:
Agetian
2015-09-27 06:00:21 +00:00
parent 5f4b9480e7
commit 273e71cc0a
7 changed files with 83 additions and 25 deletions

View File

@@ -242,6 +242,30 @@ public class GameSimulatorTest extends TestCase {
assertEquals(16, simGame.getPlayers().get(0).getLife());
}
public void testEchoCostState() {
Game game = initAndCreateGame();
Player p = game.getPlayers().get(1);
String c1Name = "Acridian";
String c2Name = "Goblin Patrol";
Card c1 = addCard(c1Name, p);
Card c2 = addCard(c2Name, p);
game.getPhaseHandler().devModeSet(PhaseType.MAIN2, p);
game.getAction().checkStateEffects(true);
assertTrue(c1.hasStartOfKeyword("(Echo unpaid)"));
assertTrue(c2.hasStartOfKeyword("(Echo unpaid)"));
c2.removeAllExtrinsicKeyword("(Echo unpaid)");
GameSimulator sim = createSimulator(game, p);
Game simGame = sim.getSimulatedGameState();
Card c1Copy = findCardWithName(simGame, c1Name);
assertTrue(c1Copy.hasStartOfKeyword("(Echo unpaid)"));
Card c2Copy = findCardWithName(simGame, c2Name);
assertFalse(c2Copy.hasStartOfKeyword("(Echo unpaid)"));
}
public void testSimulateUnmorph() {
Game game = initAndCreateGame();
Player p = game.getPlayers().get(1);