mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:50:42 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user