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.

This commit is contained in:
LevelX2 2014-08-10 15:20:57 +02:00
parent c8fa685735
commit a4866a9782

View file

@ -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;