mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fix another problem with Thespian's Stage copying itself and add a test.
This commit is contained in:
@@ -568,6 +568,7 @@ public class GameSimulatorTest extends TestCase {
|
||||
addCard("Swamp", p);
|
||||
addCard("Swamp", p);
|
||||
Card thespian = addCard("Thespian's Stage", p);
|
||||
assertTrue(thespian.isLand());
|
||||
game.getPhaseHandler().devModeSet(PhaseType.MAIN2, p);
|
||||
game.getAction().checkStateEffects(true);
|
||||
|
||||
@@ -578,6 +579,8 @@ public class GameSimulatorTest extends TestCase {
|
||||
GameSimulator sim = createSimulator(game, p);
|
||||
sim.simulateSpellAbility(sa);
|
||||
Game simGame = sim.getSimulatedGameState();
|
||||
assertNotNull(gameStateToString(simGame), findCardWithName(simGame, "Thespian's Stage"));
|
||||
Card thespianSim = findCardWithName(simGame, "Thespian's Stage");
|
||||
assertNotNull(gameStateToString(simGame), thespianSim);
|
||||
assertTrue(thespianSim.isLand());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user