From 9d7e8ec4f8077073a015630dca34056f40fac089 Mon Sep 17 00:00:00 2001 From: Agetian Date: Tue, 9 Jun 2015 05:53:15 +0000 Subject: [PATCH] - Fixed a bug that caused some cards to be shown face down when looking through the library before taking an action (e.g. using a fetchland to find a land). --- .../src/main/java/forge/player/PlayerControllerHuman.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java index b41a9727dc6..f54884ae5ba 100644 --- a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java +++ b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java @@ -180,9 +180,11 @@ public class PlayerControllerHuman private final Set tempShownCards = new HashSet(); public void tempShow(final Iterable objects) { for (final T t : objects) { + // assume you may see any card passed through here if (t instanceof Card) { - // assume you may see any card passed through here tempShowCard((Card) t); + } else if (t instanceof CardView) { + tempShowCard(game.getCard((CardView) t)); } } } @@ -432,6 +434,9 @@ public class PlayerControllerHuman } tempShow(optionList); + if (delayedReveal != null) { + tempShow(delayedReveal.getCards()); + } final GameEntityView result = getGui().chooseSingleEntityForEffect(title, GameEntityView.getEntityCollection(optionList), delayedReveal, isOptional); endTempShowCards();