Fix unplayable AI info not displaying card

This commit is contained in:
tool4EvEr
2022-04-25 18:51:30 +02:00
parent 6c0b1c8ba8
commit a12041ee8b

View File

@@ -2101,12 +2101,10 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
}
for (Player p : unplayable.keySet()) {
final Map<DeckSection, List<? extends PaperCard>> removedUnplayableCards = unplayable.get(p);
final List<String> labels = new ArrayList<>();
final List<Object> labels = new ArrayList<>();
for (final DeckSection s: new TreeSet<>(removedUnplayableCards.keySet())) {
labels.add("=== " + DeckAIUtils.getLocalizedDeckSection(localizer, s) + " ===");
for (PaperCard c: removedUnplayableCards.get(s)) {
labels.add(c.toString());
}
labels.addAll(removedUnplayableCards.get(s));
}
getGui().reveal(localizer.getMessage("lblActionFromPlayerDeck", message, Lang.getInstance().getPossessedObject(MessageUtil.mayBeYou(player, p), "")),
ImmutableList.copyOf(labels));