mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Small fix
This commit is contained in:
parent
1527b09dc0
commit
187b558b7b
1 changed files with 3 additions and 1 deletions
|
@ -202,7 +202,9 @@ class BecameBlockedByOnlyOneCreatureWatcher extends Watcher {
|
|||
CombatGroup combatGroup = game.getCombat().findGroup(event.getTargetId());
|
||||
if (combatGroup != null) {
|
||||
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) {
|
||||
blockedByOneCreature.remove(combatGroup);
|
||||
|
|
Loading…
Reference in a new issue