From a4866a97829561c3157e3cf8737cd829f7e719a0 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 10 Aug 2014 15:20:57 +0200 Subject: [PATCH] Fixed that looking in the top x cards while playing with the top card revealed shows wrongly the next card in library (fixes #487). Maybe there are some individual cards left that also need fixing. --- .../abilities/effects/common/LookLibraryControllerEffect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mage/src/mage/abilities/effects/common/LookLibraryControllerEffect.java b/Mage/src/mage/abilities/effects/common/LookLibraryControllerEffect.java index ab3f892ceb..a87e52b605 100644 --- a/Mage/src/mage/abilities/effects/common/LookLibraryControllerEffect.java +++ b/Mage/src/mage/abilities/effects/common/LookLibraryControllerEffect.java @@ -125,6 +125,8 @@ public class LookLibraryControllerEffect extends OneShotEffect { } // take cards from library and look at them + boolean topCardRevealed = player.isTopCardRevealed(); + player.setTopCardRevealed(false); Cards cards = new CardsImpl(Zone.PICK); int count = Math.min(player.getLibrary().size(), this.numberOfCards.calculate(game, source)); for (int i = 0; i < count; i++) { @@ -141,6 +143,8 @@ public class LookLibraryControllerEffect extends OneShotEffect { this.putCardsBack(source, player, cards, game); + player.setTopCardRevealed(topCardRevealed); + this.mayShuffle(player, game); return true;