TestCase: fix Manifest test

This commit is contained in:
Hans Mackowiak
2021-02-09 22:47:31 +01:00
parent c830641bc9
commit a82f035211
4 changed files with 11 additions and 11 deletions

View File

@@ -304,14 +304,18 @@ public class GameSimulatorTest extends SimulationTestCase {
Card manifestedCreature = findCardWithName(simGame, "");
assertNotNull(manifestedCreature);
SpellAbility unmanifestSA = findSAWithPrefix(manifestedCreature, "Unmanifest");
SpellAbility unmanifestSA = findSAWithPrefix(manifestedCreature.getAllPossibleAbilities(p, false), "Unmanifest");
assertNotNull(unmanifestSA);
assertEquals(2, manifestedCreature.getNetPower());
assertFalse(manifestedCreature.hasKeyword("Flying"));
GameSimulator sim2 = createSimulator(simGame, simGame.getPlayers().get(1));
sim2.simulateSpellAbility(unmanifestSA);
Game simGame2 = sim2.getSimulatedGameState();
manifestedCreature = findCardWithName(simGame2, "");
unmanifestSA = findSAWithPrefix(manifestedCreature.getAllPossibleAbilities(simGame2.getPlayers().get(1), false), "Unmanifest");
sim2.simulateSpellAbility(unmanifestSA);
Card ornithopter = findCardWithName(simGame2, "Ornithopter");
assertEquals(0, ornithopter.getNetPower());
assertTrue(ornithopter.hasKeyword("Flying"));