From 44478af23c25d223b6605fbff929247a4e3604a7 Mon Sep 17 00:00:00 2001
From: Bloop <13398309+vinylspiders@users.noreply.github.com>
Date: Sun, 2 Nov 2025 09:42:05 -0500
Subject: [PATCH] Stops flesh abominations from trying to flail around after
they've been deleted (#93725)
## About The Pull Request
This might sound fun but it's really not, all you get is a hard delete +
runtime.
## Why It's Good For The Game
Bugfix
## Changelog
Not player-facing
---
code/modules/mob/living/basic/ruin_defender/flesh.dm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/code/modules/mob/living/basic/ruin_defender/flesh.dm b/code/modules/mob/living/basic/ruin_defender/flesh.dm
index 918ea15206a..89854ee8eea 100644
--- a/code/modules/mob/living/basic/ruin_defender/flesh.dm
+++ b/code/modules/mob/living/basic/ruin_defender/flesh.dm
@@ -181,7 +181,7 @@
/mob/living/basic/living_limb_flesh/proc/on_limb_lost(atom/movable/source, mob/living/carbon/old_owner, special, dismembered)
SIGNAL_HANDLER
unregister_from_limb(old_owner)
- addtimer(CALLBACK(src, PROC_REF(wake_up), source), 2 SECONDS)
+ addtimer(CALLBACK(src, PROC_REF(wake_up), source), 2 SECONDS, TIMER_STOPPABLE | TIMER_DELETE_ME)
/mob/living/basic/living_limb_flesh/proc/register_to_limb(obj/item/bodypart/part)
current_bodypart = part
@@ -199,6 +199,8 @@
current_bodypart = null
/mob/living/basic/living_limb_flesh/proc/wake_up(atom/limb)
+ if(QDELETED(src))
+ return
visible_message(span_warning("[src] begins flailing around!"))
Shake(6, 6, 0.5 SECONDS)
ai_controller.set_ai_status(AI_STATUS_ON)