- Fix effects like Fact or Fiction not revealing the cards properly to the player.

This commit is contained in:
Agetian
2014-09-28 07:32:51 +00:00
parent 09b8e0f9e1
commit cc920261d8

View File

@@ -328,6 +328,7 @@ public class PlayerControllerHuman extends PlayerController {
public List<Card> chooseCardsForEffect(List<Card> sourceList, SpellAbility sa, String title, int min, int max, boolean isOptional) {
// If only one card to choose, use a dialog box.
// Otherwise, use the order dialog to be able to grab multiple cards in one shot
if (max == 1) {
Card singleChosen = chooseSingleEntityForEffect(sourceList, sa, title, isOptional);
return singleChosen == null ? Lists.<Card>newArrayList() : Lists.newArrayList(singleChosen);
@@ -354,7 +355,10 @@ public class PlayerControllerHuman extends PlayerController {
return Lists.newArrayList(sc.getSelected());
}
this.mayLookAt.addAll(sourceList);
final List<CardView> choices = SGuiChoose.many(getGui(), title, "Chosen Cards", min, max, gameView.getCardViews(sourceList), gameView.getCardView(sa.getHostCard()));
this.mayLookAt.removeAll(sourceList);
return getCards(choices);
}