From 772c9bc77dfd08d507585569d2e819ad6c03df88 Mon Sep 17 00:00:00 2001 From: Agetian Date: Tue, 25 Jul 2017 15:51:47 +0000 Subject: [PATCH] - Updated the test case for Death's Shadow. --- .../ai/simulation/GameSimulatorTest.java | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulatorTest.java b/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulatorTest.java index bed321aabef..1cb85892941 100644 --- a/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulatorTest.java +++ b/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulatorTest.java @@ -1334,8 +1334,7 @@ public class GameSimulatorTest extends SimulationTestCase { assert(bloodghast.hasKeyword("Haste")); } - public void testDeathsShadowOnNegativeLife() { - // Death's Shadow should be 13/13 when its controller has negative life + public void testDeathsShadow() { Game game = initAndCreateGame(); Player p = game.getPlayers().get(0); Player opp = game.getPlayers().get(1); @@ -1344,21 +1343,12 @@ public class GameSimulatorTest extends SimulationTestCase { addCardToZone("Platinum Angel", p, ZoneType.Battlefield); Card deathsShadow = addCardToZone("Death's Shadow", p, ZoneType.Battlefield); - addCardToZone("Mountain", opp, ZoneType.Battlefield); - Card bolt = addCardToZone("Lightning Bolt", opp, ZoneType.Hand); - p.setLife(1, null); - - SpellAbility boltSA = bolt.getFirstSpellAbility(); - boltSA.getTargets().add(p); - - GameSimulator sim = createSimulator(game, p); - int score = sim.simulateSpellAbility(boltSA).value; - assertTrue(score > 0); - game.getAction().checkStateEffects(true); + assert(deathsShadow.getNetPower() == 12); // positive life value - assert(deathsShadow.getNetPower() == 13); - + p.setLife(-1, null); + game.getAction().checkStateEffects(true); + assert(deathsShadow.getNetPower() == 13); // negative life value } }