- 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).

This commit is contained in:
Agetian
2015-06-09 05:53:15 +00:00
parent 6129655942
commit 9d7e8ec4f8

View File

@@ -180,9 +180,11 @@ public class PlayerControllerHuman
private final Set<Card> tempShownCards = new HashSet<Card>();
public <T> void tempShow(final Iterable<T> objects) {
for (final T t : objects) {
if (t instanceof Card) {
// assume you may see any card passed through here
if (t instanceof Card) {
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();