bug: fix nuke tile score (#749)

## Description:

Fix a bug with nuke tile scoring.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors
This commit is contained in:
Scott Anderson
2025-05-14 12:34:25 -04:00
committed by GitHub
parent fc54cd7658
commit 9029c6e281
+1 -1
View File
@@ -312,7 +312,7 @@ export class FakeHumanExecution implements Execution {
}
if (!this.player.canBuild(UnitType.AtomBomb, tile)) continue;
const value = this.nukeTileScore(tile, silos, structures);
if (value > bestTile) {
if (value > bestValue) {
bestTile = tile;
bestValue = value;
}