From 901cef43c96ce97c0ab6a43e312a8cb4fb619473 Mon Sep 17 00:00:00 2001 From: xsainteer <156868231+xsainteer@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:56:48 +0600 Subject: [PATCH] last words error fix (#39245) 4 line bugfix --- Content.Server/Mobs/CritMobActionsSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/Mobs/CritMobActionsSystem.cs b/Content.Server/Mobs/CritMobActionsSystem.cs index c897102dca..c266037a8f 100644 --- a/Content.Server/Mobs/CritMobActionsSystem.cs +++ b/Content.Server/Mobs/CritMobActionsSystem.cs @@ -65,6 +65,10 @@ public sealed class CritMobActionsSystem : EntitySystem _quickDialog.OpenDialog(actor.PlayerSession, Loc.GetString("action-name-crit-last-words"), "", (string lastWords) => { + // if a person is gibbed/deleted, they can't say last words + if (Deleted(uid)) + return; + // Intentionally does not check for muteness if (actor.PlayerSession.AttachedEntity != uid || !_mobState.IsCritical(uid))