From 3afdf64eee38dc5a610ce44209825621896f779a Mon Sep 17 00:00:00 2001 From: phosit Date: Sun, 31 Aug 2025 17:42:35 +0200 Subject: [PATCH] Update territories when a construction is finished Constructions can change the territories. So they should be updated. --- .../data/mods/public/simulation/ai/petra/headquarters.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/binaries/data/mods/public/simulation/ai/petra/headquarters.js b/binaries/data/mods/public/simulation/ai/petra/headquarters.js index 696f5fd0f7..2abd25063a 100644 --- a/binaries/data/mods/public/simulation/ai/petra/headquarters.js +++ b/binaries/data/mods/public/simulation/ai/petra/headquarters.js @@ -131,8 +131,11 @@ Headquarters.prototype.checkEvents = function(gameState, events) { this.buildManager.checkEvents(gameState, events); - if (events.TerritoriesChanged.length || events.DiplomacyChanged.length) + if (events.TerritoriesChanged.length || events.DiplomacyChanged.length || + events.ConstructionFinished.length) + { this.updateTerritories(gameState); + } for (const evt of events.DiplomacyChanged) {