From 5741e53fe20e3af4a830e9f588fc2314540ff5b4 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 18 Mar 2016 18:16:24 +0000 Subject: [PATCH] Fix AI stalling after losing its conyard and ref. --- OpenRA.Mods.Common/AI/HackyAI.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/AI/HackyAI.cs b/OpenRA.Mods.Common/AI/HackyAI.cs index 2694e9276f..e4a10d7783 100644 --- a/OpenRA.Mods.Common/AI/HackyAI.cs +++ b/OpenRA.Mods.Common/AI/HackyAI.cs @@ -429,9 +429,10 @@ namespace OpenRA.Mods.Common.AI public bool HasAdequateProc() { - // Require at least one refinery, unless we have no power (can't build it). + // Require at least one refinery, unless we can't build it. return CountBuildingByCommonName(Info.BuildingCommonNames.Refinery, Player) > 0 || - CountBuildingByCommonName(Info.BuildingCommonNames.Power, Player) == 0; + CountBuildingByCommonName(Info.BuildingCommonNames.Power, Player) == 0 || + CountBuildingByCommonName(Info.BuildingCommonNames.ConstructionYard, Player) == 0; } public bool HasMinimumProc()