mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
- Fixed #5566
This commit is contained in:
parent
e2bc691f0b
commit
cd23125664
1 changed files with 5 additions and 1 deletions
|
@ -1588,7 +1588,10 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
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());
|
||||
|
@ -1596,6 +1599,7 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
} else {
|
||||
playerDefenders.add(group.getDefenderId());
|
||||
}
|
||||
*/
|
||||
}
|
||||
return playerDefenders;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue