mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user