Deathgasp changes for mutes (#19025)

Co-authored-by: Errant <35878406+errant@users.noreply.github.com>
This commit is contained in:
Errant
2023-08-22 06:05:16 +00:00
committed by GitHub
parent a470f8f40b
commit 2565a045ca
3 changed files with 17 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.Chat.Systems;
using Content.Server.Speech.Muting;
using Content.Shared.Mobs;
using Robust.Shared.Prototypes;
@@ -33,6 +34,9 @@ public sealed class DeathgaspSystem: EntitySystem
if (!Resolve(uid, ref component, false))
return false;
if (HasComp<MutedComponent>(uid))
return false;
_chat.TryEmoteWithChat(uid, component.Prototype, ignoreActionBlocker: true);
return true;