mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
fix #12058 (check phased in for "control a commander")
This commit is contained in:
parent
1198192a13
commit
5c9d1cd205
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue