Deathgasp changes for mutes (#19025)
Co-authored-by: Errant <35878406+errant@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user