From 17993bcd8d8b50c501b8fc9505ed1203f3d816f4 Mon Sep 17 00:00:00 2001 From: Lyndomen <49795619+Lyndomen@users.noreply.github.com> Date: Fri, 10 Jan 2025 01:35:00 -0500 Subject: [PATCH] oops --- Content.Server/_DV/Pain/PainSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Server/_DV/Pain/PainSystem.cs b/Content.Server/_DV/Pain/PainSystem.cs index bbd71838732..08e23e99461 100644 --- a/Content.Server/_DV/Pain/PainSystem.cs +++ b/Content.Server/_DV/Pain/PainSystem.cs @@ -5,7 +5,6 @@ using Robust.Shared.Prototypes; using Robust.Shared.Random; using Robust.Shared.Timing; -using Content.Shared.Mobs.Components; namespace Content.Server._DV.Pain; @@ -94,7 +93,7 @@ public override void Update(float frameTime) private void HandlePainTrigger(EntityUid uid, PainComponent component, ref MobStateChangedEvent args) { - if (args.NewMobState != MobState.Dead && HasComp(uid)) + if (args.NewMobState == MobState.Dead && HasComp(uid)) EnsureComp(uid); } }