Allow players to block creatures attacking destroyed planeswalkers.

See Comprehensive rules: 506.4c
Fixes https://github.com/magefree/mage/issues/6240
This commit is contained in:
dilnu 2020-02-01 17:30:30 -05:00
parent b708494647
commit 06e77bd7d6
2 changed files with 27 additions and 0 deletions

View file

@ -1607,6 +1607,8 @@ public class Combat implements Serializable, Copyable<Combat> {
Permanent permanent = game.getPermanent(group.getDefenderId());
if (permanent != null) {
playerDefenders.add(permanent.getControllerId());
} else {
playerDefenders.add(group.getDefendingPlayerId());
}
} else {
playerDefenders.add(group.getDefenderId());