fixed Flawless Maneuver et al. causing an error when cast

This commit is contained in:
Evan Kranzler 2020-04-29 20:53:30 -04:00
parent 53bc2e559f
commit 8712ab7578

View file

@ -24,6 +24,7 @@ public enum ControlACommanderCondition implements Condition {
.map(player -> game.getCommandersIds(player, CommanderCardType.COMMANDER_OR_OATHBREAKER))
.flatMap(Collection::stream)
.map(game::getPermanent)
.filter(Objects::nonNull)
.map(Permanent::getControllerId)
.anyMatch(source.getControllerId()::equals);
}