mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
TestCase: fix Manifest test
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user