mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- 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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user