mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixed Flawless Maneuver et al. causing an error when cast
This commit is contained in:
parent
53bc2e559f
commit
8712ab7578
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue