From 7fee524ecdb03d8912aaa4c39a679a13b3a6e3ba Mon Sep 17 00:00:00 2001 From: Babaev <129369024+babaevlsdd@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:47:30 +0600 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B7=D0=BE=D0=BC?= =?UTF-8?q?=D0=B1=D0=B8=20=D0=BC=D0=B5=D1=85=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Zombies/ZombieSystem.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Server/Zombies/ZombieSystem.cs b/Content.Server/Zombies/ZombieSystem.cs index a7442680b2a..0521a057c32 100644 --- a/Content.Server/Zombies/ZombieSystem.cs +++ b/Content.Server/Zombies/ZombieSystem.cs @@ -13,6 +13,7 @@ using Content.Shared.Damage; using Content.Shared.Humanoid; using Content.Shared.Inventory; +using Content.Shared.Mech.Components; // Sunrise-Edit using Content.Shared.Mind; using Content.Shared.Mobs; using Content.Shared.Mobs.Components; @@ -352,6 +353,13 @@ private void OnMeleeHit(EntityUid uid, ZombieComponent component, MeleeHitEvent if (args.User == entity) continue; + // Sunrise-Edit-Start + + if (HasComp(entity)) + continue; + + // Sunrise-Edit-End + if (!TryComp(entity, out var mobState)) continue;