Fixes D2K AI constantly repairing weather damage.

This commit is contained in:
UberWaffe
2014-08-13 16:13:34 +02:00
parent 68712a89c5
commit 1375e56a32

View File

@@ -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<RepairableBuilding>();
if (Info.ShouldRepairBuildings && rb != null)