mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed Crystalline Giant
This commit is contained in:
parent
ba81bd45e1
commit
5dac0da47e
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue