Small fix

This commit is contained in:
Zzooouhh 2017-11-17 19:21:05 +01:00 committed by GitHub
parent 1527b09dc0
commit 187b558b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,9 @@ class BecameBlockedByOnlyOneCreatureWatcher extends Watcher {
CombatGroup combatGroup = game.getCombat().findGroup(event.getTargetId()); CombatGroup combatGroup = game.getCombat().findGroup(event.getTargetId());
if (combatGroup != null) { if (combatGroup != null) {
if (combatGroup.getBlockers().size() == 1) { if (combatGroup.getBlockers().size() == 1) {
blockedByOneCreature.put(combatGroup, new MageObjectReference(combatGroup.getBlockers().get(0), game)); if (!blockedByOneCreature.containsKey(combatGroup)) {
blockedByOneCreature.put(combatGroup, new MageObjectReference(combatGroup.getBlockers().get(0), game));
}
} }
else if (combatGroup.getBlockers().size() > 1) { else if (combatGroup.getBlockers().size() > 1) {
blockedByOneCreature.remove(combatGroup); blockedByOneCreature.remove(combatGroup);