Skip to content

Commit

Permalink
- Fixed #5566
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwadsworth committed Feb 1, 2019
1 parent e2bc691 commit cd23125
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Mage/src/main/java/mage/game/combat/Combat.java
Original file line number Diff line number Diff line change
Expand Up @@ -1588,14 +1588,18 @@ public UUID getDefendingPlayerId(UUID attackingCreatureId, Game game) {
public Set<UUID> getPlayerDefenders(Game game) {
Set<UUID> playerDefenders = new HashSet<>();
for (CombatGroup group : groups) {
if (group.defenderIsPlaneswalker) {
if (!group.defenderIsPlaneswalker) {
playerDefenders.add(group.getDefenderId());
}
/* The planeswalker was attacked, not the player. So I believe the code is incorrect.
Permanent permanent = game.getPermanent(group.getDefenderId());
if (permanent != null) {
playerDefenders.add(permanent.getControllerId());
}
} else {
playerDefenders.add(group.getDefenderId());
}
*/
}
return playerDefenders;
}
Expand Down

0 comments on commit cd23125

Please sign in to comment.