diff --git a/OpenRA.Mods.RA/AI/HackyAI.cs b/OpenRA.Mods.RA/AI/HackyAI.cs index 4fcb2bee83..3f98bb6a7b 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -14,7 +14,8 @@ using System.Linq; using OpenRA.FileFormats; using OpenRA.Mods.RA.Buildings; using OpenRA.Traits; -using XRandom = OpenRA.Thirdparty.Random; +using XRandom = OpenRA.Thirdparty.Random; +using OpenRA.Mods.RA.Move; //TODO: // effectively clear the area around the production buildings' spawn points. @@ -437,7 +438,7 @@ namespace OpenRA.Mods.RA.AI { /* find our mcv and deploy it */ var mcv = self.World.Actors - .FirstOrDefault(a => a.Owner == p && a.HasTrait()); + .FirstOrDefault(a => a.Owner == p && a.HasTrait() && a.HasTrait()); if (mcv != null) {