Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Aug 27, 2023
1 parent 65ac957 commit 74b6e20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,13 @@ private void determineIfMoveTerritoriesCanBeHeld() {
final ProTerritory patd = moveMap.get(t);

// Check if no enemy attackers
if (enemyAttackOptions.getMax(t) == null) {
final ProTerritory enemyAttackMax = enemyAttackOptions.getMax(t);
if (enemyAttackMax == null) {
ProLogger.debug("Territory=" + t.getName() + ", CanHold=true since has no enemy attackers");
continue;
}

// Check if min defenders can hold it (not considering AA)
final ProTerritory enemyAttackMax = enemyAttackOptions.getMax(t);
final Set<Unit> enemyAttackingUnits = new HashSet<>(enemyAttackMax.getMaxUnits());
enemyAttackingUnits.addAll(enemyAttackMax.getMaxAmphibUnits());
patd.setMaxEnemyUnits(enemyAttackingUnits);
Expand Down

0 comments on commit 74b6e20

Please sign in to comment.