diff --git a/Content.Server/NPC/Systems/NPCCombatSystem.Melee.cs b/Content.Server/NPC/Systems/NPCCombatSystem.Melee.cs index fda35bda32..d421efc357 100644 --- a/Content.Server/NPC/Systems/NPCCombatSystem.Melee.cs +++ b/Content.Server/NPC/Systems/NPCCombatSystem.Melee.cs @@ -93,8 +93,11 @@ public sealed partial class NPCCombatSystem return; } + var steering = EnsureComp(component.Owner); + steering.Range = MathF.Max(0.2f, weapon.Range - 0.4f); + // Gets unregistered on component shutdown. - _steering.TryRegister(component.Owner, new EntityCoordinates(component.Target, Vector2.Zero)); + _steering.TryRegister(component.Owner, new EntityCoordinates(component.Target, Vector2.Zero), steering); _melee.AttemptLightAttack(component.Owner, weapon, component.Target); } }