fixed issue 314

This commit is contained in:
BetaSteward 2011-10-25 21:43:59 -04:00
parent 517a0cae26
commit 21f9633486
2 changed files with 5 additions and 1 deletions

View file

@ -416,6 +416,8 @@ public class Combat implements Serializable, Copyable<Combat> {
if (group.blockers.contains(blockerId)) { if (group.blockers.contains(blockerId)) {
group.blockers.remove(blockerId); group.blockers.remove(blockerId);
group.blockerOrder.remove(blockerId); group.blockerOrder.remove(blockerId);
if (group.blockers.isEmpty())
group.blocked = false;
} }
} }
Permanent creature = game.getPermanent(blockerId); Permanent creature = game.getPermanent(blockerId);

View file

@ -484,12 +484,14 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
return defenderIsPlaneswalker; return defenderIsPlaneswalker;
} }
void remove(UUID creatureId) { public void remove(UUID creatureId) {
if (attackers.contains(creatureId)) { if (attackers.contains(creatureId)) {
attackers.remove(creatureId); attackers.remove(creatureId);
} }
if (blockers.contains(creatureId)) { if (blockers.contains(creatureId)) {
blockers.remove(creatureId); blockers.remove(creatureId);
if (blockers.isEmpty())
blocked = false;
//20100423 - 509.2a //20100423 - 509.2a
if (blockerOrder.contains(creatureId)) if (blockerOrder.contains(creatureId))
blockerOrder.remove(creatureId); blockerOrder.remove(creatureId);