From 069f31ca07643e6feabbde2253f7a08491f081e2 Mon Sep 17 00:00:00 2001 From: Metal Gear Sloth Date: Tue, 15 Sep 2020 20:43:03 +1000 Subject: [PATCH] Fix AI melee combat It's just that easy. AI using the interaction system is messy and needs a refactor (there's already an existing issue for this). --- .../GameObjects/EntitySystems/Click/InteractionSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs b/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs index 7537377f95..1007c475bf 100644 --- a/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs @@ -198,7 +198,7 @@ namespace Content.Server.GameObjects.EntitySystems.Click if (entity.TryGetComponent(out CombatModeComponent combatMode) && combatMode.IsInCombatMode) { - DoAttack(entity, coords, false); + DoAttack(entity, coords, false, uid); } else {