Fixed failing Kiki-Jiki Mirror Breaker test.

This commit is contained in:
LevelX2 2014-08-28 13:16:25 +02:00
parent 6fda5540d0
commit 650ca1616a
2 changed files with 3 additions and 5 deletions

View file

@ -56,7 +56,7 @@ public class KikiJikiMirrorBreakerTest extends CardTestPlayerBase {
} }
@Test @Test
public void testSimpleCopyExiledAtEnd() { public void testSimpleCopySacrificeAtEnd() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5); addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
addCard(Zone.BATTLEFIELD, playerA, "Kiki-Jiki, Mirror Breaker", 1); addCard(Zone.BATTLEFIELD, playerA, "Kiki-Jiki, Mirror Breaker", 1);
addCard(Zone.BATTLEFIELD, playerA, "Voice of Resurgence", 1); addCard(Zone.BATTLEFIELD, playerA, "Voice of Resurgence", 1);
@ -68,7 +68,7 @@ public class KikiJikiMirrorBreakerTest extends CardTestPlayerBase {
assertLife(playerA, 20); assertLife(playerA, 20);
assertLife(playerB, 20); assertLife(playerB, 20);
assertPermanentCount(playerA, "Elemental", 0); // because the copy was exiled assertPermanentCount(playerA, "Elemental", 1); // because the copy was sacrificed
assertPermanentCount(playerA, "Voice of Resurgence", 1); assertPermanentCount(playerA, "Voice of Resurgence", 1);
} }

View file

@ -109,9 +109,7 @@ class ExtortEffect extends OneShotEffect {
if (loseLife > 0) { if (loseLife > 0) {
game.getPlayer(source.getControllerId()).gainLife(loseLife, game); game.getPlayer(source.getControllerId()).gainLife(loseLife, game);
} }
if (permanent != null) { game.informPlayers(new StringBuilder(permanent.getName()).append(" extorted opponents ").append(loseLife).append(" life").toString());
game.informPlayers(new StringBuilder(permanent.getName()).append(" extorted opponents ").append(loseLife).append(" life").toString());
}
} }
} }
return true; return true;