diff --git a/OpenRA.Mods.Common/Traits/BotModules/BuildingRepairBotModule.cs b/OpenRA.Mods.Common/Traits/BotModules/BuildingRepairBotModule.cs index 627954bf34..a2350bf27a 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/BuildingRepairBotModule.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/BuildingRepairBotModule.cs @@ -26,6 +26,12 @@ namespace OpenRA.Mods.Common.Traits void IBotRespondToAttack.RespondToAttack(IBot bot, Actor self, AttackInfo e) { + // HACK: We don't want D2k bots to repair all their buildings on placement + // where half their HP is removed via neutral terrain damage. + // TODO: Implement concrete placement for D2k bots and remove this hack. + if (e.Attacker.Owner.Stances[self.Owner] == Stance.Neutral) + return; + var rb = self.TraitOrDefault(); if (rb != null) {