From 69e6e033a68036a11d406ae17fc750682dff161c Mon Sep 17 00:00:00 2001 From: GSonderling Date: Mon, 1 Jan 2018 23:01:53 +0100 Subject: [PATCH] AI will now defend MCV as if it was a harvester or a building. Adjusted comments. --- OpenRA.Mods.Common/AI/HackyAI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/AI/HackyAI.cs b/OpenRA.Mods.Common/AI/HackyAI.cs index bb40fc4040..1a4de50c61 100644 --- a/OpenRA.Mods.Common/AI/HackyAI.cs +++ b/OpenRA.Mods.Common/AI/HackyAI.cs @@ -1257,8 +1257,8 @@ namespace OpenRA.Mods.Common.AI if (!e.Attacker.Info.HasTraitInfo()) return; - // Protected harvesters or building - if ((self.Info.HasTraitInfo() || self.Info.HasTraitInfo()) && + // Protected priority assets, MCVs, harvesters and buildings + if ((self.Info.HasTraitInfo() || self.Info.HasTraitInfo() || self.Info.HasTraitInfo()) && Player.Stances[e.Attacker.Owner] == Stance.Enemy) { defenseCenter = e.Attacker.Location;