diff --git a/Content.Client/MobState/MobStateSystem.cs b/Content.Client/MobState/MobStateSystem.cs index 4753a0fd9b..64edff1ace 100644 --- a/Content.Client/MobState/MobStateSystem.cs +++ b/Content.Client/MobState/MobStateSystem.cs @@ -1,5 +1,6 @@ using Content.Shared.Damage; using Content.Shared.FixedPoint; +using Content.Shared.Interaction.Events; using Content.Shared.MobState; using Content.Shared.MobState.Components; using Content.Shared.MobState.EntitySystems; @@ -26,6 +27,13 @@ public sealed partial class MobStateSystem : SharedMobStateSystem SubscribeLocalEvent(OnPlayerAttach); SubscribeLocalEvent(OnPlayerDetach); SubscribeLocalEvent(OnMobHandleState); + SubscribeLocalEvent(OnAttack); + } + + private void OnAttack(EntityUid uid, MobStateComponent component, AttackAttemptEvent args) + { + if (IsIncapacitated(uid, component)) + args.Cancel(); } public override void Shutdown()