fix #12058 (check phased in for "control a commander")

This commit is contained in:
xenohedron 2024-04-12 20:59:36 -04:00
parent 1198192a13
commit 5c9d1cd205

View file

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