mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed issue 314
This commit is contained in:
parent
517a0cae26
commit
21f9633486
2 changed files with 5 additions and 1 deletions
|
@ -416,6 +416,8 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
if (group.blockers.contains(blockerId)) {
|
||||
group.blockers.remove(blockerId);
|
||||
group.blockerOrder.remove(blockerId);
|
||||
if (group.blockers.isEmpty())
|
||||
group.blocked = false;
|
||||
}
|
||||
}
|
||||
Permanent creature = game.getPermanent(blockerId);
|
||||
|
|
|
@ -484,12 +484,14 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
|
|||
return defenderIsPlaneswalker;
|
||||
}
|
||||
|
||||
void remove(UUID creatureId) {
|
||||
public void remove(UUID creatureId) {
|
||||
if (attackers.contains(creatureId)) {
|
||||
attackers.remove(creatureId);
|
||||
}
|
||||
if (blockers.contains(creatureId)) {
|
||||
blockers.remove(creatureId);
|
||||
if (blockers.isEmpty())
|
||||
blocked = false;
|
||||
//20100423 - 509.2a
|
||||
if (blockerOrder.contains(creatureId))
|
||||
blockerOrder.remove(creatureId);
|
||||
|
|
Loading…
Reference in a new issue