From 1375e56a32929c1ddecd1ec46df7878f3a7e5e7c Mon Sep 17 00:00:00 2001 From: UberWaffe Date: Wed, 13 Aug 2014 16:13:34 +0200 Subject: [PATCH] Fixes D2K AI constantly repairing weather damage. --- OpenRA.Mods.RA/AI/HackyAI.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.RA/AI/HackyAI.cs b/OpenRA.Mods.RA/AI/HackyAI.cs index 8c8e2551c8..e3429408b8 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -788,6 +788,9 @@ namespace OpenRA.Mods.RA.AI if (!enabled) return; + if (e.Attacker.Owner.Stances[self.Owner] == Stance.Neutral) + return; + var rb = self.TraitOrDefault(); if (Info.ShouldRepairBuildings && rb != null)