Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyndomen committed Jan 10, 2025
1 parent f181001 commit 17993bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Content.Server/_DV/Pain/PainSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<HumanoidAppearanceComponent>(uid))
if (args.NewMobState == MobState.Dead && HasComp<HumanoidAppearanceComponent>(uid))
EnsureComp<PainComponent>(uid);
}
}

0 comments on commit 17993bc

Please sign in to comment.