ShamanicRitual: fixed edge case when everybody has the same icons

ShamanicRitualTest: fixed
This commit is contained in:
2026-04-08 18:44:28 +02:00
parent 513f9e2d87
commit 092b8991cd
2 changed files with 3 additions and 3 deletions
@@ -68,7 +68,7 @@ public class ShamanicRitual extends EventCard {
int minIcon = playerMap.values().stream().mapToInt(Integer::intValue).min().orElse(0);
List<Player> maxIconsPlayer = playerMap.entrySet().stream().filter(e -> e.getValue() == maxIcon).map(Map.Entry::getKey).collect(Collectors.toList());
List<Player> minIconsPlayer = playerMap.entrySet().stream().filter(e -> e.getValue() == minIcon).map(Map.Entry::getKey).filter(player -> !maxIconsPlayer.contains(player)).collect(Collectors.toList());
List<Player> minIconsPlayer = playerMap.entrySet().stream().filter(e -> e.getValue() == minIcon).map(Map.Entry::getKey).collect(Collectors.toList());
for (Player player : maxIconsPlayer) {