fixed Crystalline Giant

This commit is contained in:
Evan Kranzler 2020-04-20 22:28:29 -04:00
parent ba81bd45e1
commit 5dac0da47e

View file

@ -16,10 +16,10 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.util.RandomUtil;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
/**
* @author TheElk801
@ -89,10 +89,9 @@ class CrystallineGiantEffect extends OneShotEffect {
return false;
}
Counters counters = permanent.getCounters(game);
List<CounterType> counterTypes = counterTypeSet
.stream()
.filter(counterType -> !counters.containsKey(counterType))
.collect(Collectors.toList());
List<CounterType> counterTypes = new ArrayList();
counterTypes.addAll(counterTypeSet);
counterTypes.removeIf(counters::containsKey);
if (counterTypes.size() == 0) {
return false;
}