mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
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:
parent
c8fa685735
commit
a4866a9782
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue