mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Small fix
This commit is contained in:
parent
1527b09dc0
commit
187b558b7b
1 changed files with 3 additions and 1 deletions
|
@ -202,8 +202,10 @@ class BecameBlockedByOnlyOneCreatureWatcher extends Watcher {
|
|||
CombatGroup combatGroup = game.getCombat().findGroup(event.getTargetId());
|
||||
if (combatGroup != null) {
|
||||
if (combatGroup.getBlockers().size() == 1) {
|
||||
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