* [MIC] Celestial Judgment - fixed game error on usage

This commit is contained in:
Oleg Agafonov 2023-04-08 19:36:54 +04:00
parent 914cfc1d3a
commit 2f6fa8610b

View file

@ -74,10 +74,12 @@ class CelestialJudgmentEffect extends OneShotEffect {
.stream()
.collect(Collectors.toMap(
permanent -> permanent.getPower().getValue(),
permanent -> Arrays.asList(permanent),
Arrays::asList,
(a1, a2) -> {
a1.addAll(a2);
return a1;
List<Permanent> res = new ArrayList<>();
res.addAll(a1);
res.addAll(a2);
return res;
}));
Set<UUID> toKeep = new HashSet<>();
for (Map.Entry<Integer, List<Permanent>> entry : powerMap.entrySet()) {