mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fix effects like Fact or Fiction not revealing the cards properly to the player.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user