From c04bb9387f468c71ea770b4dd1bf2fe0542ac2cb Mon Sep 17 00:00:00 2001 From: Dydzio Date: Tue, 9 Oct 2018 20:23:36 +0200 Subject: [PATCH] New rule: Cannot build upgrades without fort --- AI/VCAI/BuildingManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/VCAI/BuildingManager.cpp b/AI/VCAI/BuildingManager.cpp index cfe0dfc2c..28584f0d2 100644 --- a/AI/VCAI/BuildingManager.cpp +++ b/AI/VCAI/BuildingManager.cpp @@ -206,7 +206,7 @@ bool BuildingManager::getBuildingOptions(const CGTownInstance * t) //try to upgrade dwelling for (int i = 0; i < ARRAY_COUNT(unitsUpgrade); i++) { - if (t->hasBuilt(unitsSource[i]) && !t->hasBuilt(unitsUpgrade[i])) + if (t->hasBuilt(unitsSource[i]) && !t->hasBuilt(unitsUpgrade[i]) && t->hasBuilt(BuildingID::FORT)) { if (tryBuildThisStructure(t, unitsUpgrade[i])) return true;