From 9029c6e281f896efc08da05a8c2e529cb589d982 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 14 May 2025 12:34:25 -0400 Subject: [PATCH] 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 --- src/core/execution/FakeHumanExecution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index 358164931..18b84bc3f 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -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; }