From 1448248edc72bdce3eb995cccf3fd818e7398b52 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:15:30 +0100 Subject: [PATCH] Fixes green raptor corpses being able to mine rocks (#87558) ## About The Pull Request Closes #87554 ## Changelog :cl: fix: Fixed green raptor corpses being able to mine rocks /:cl: --- code/datums/elements/proficient_miner.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/elements/proficient_miner.dm b/code/datums/elements/proficient_miner.dm index 0d7a43528f5..a35b3951d44 100644 --- a/code/datums/elements/proficient_miner.dm +++ b/code/datums/elements/proficient_miner.dm @@ -9,8 +9,10 @@ /datum/element/proficient_miner/proc/on_bump(mob/living/source, atom/target) SIGNAL_HANDLER - if(!ismineralturf(target)) + + if(!ismineralturf(target) || (istype(source) && source.stat != CONSCIOUS)) return + var/turf/closed/mineral/mineral_wall = target if(!istype(mineral_wall, /turf/closed/mineral/gibtonite)) @@ -21,8 +23,6 @@ if(gibtonite_wall.stage == GIBTONITE_UNSTRUCK) mineral_wall.gets_drilled(source) - - /datum/element/proficient_miner/Detach(datum/source, ...) UnregisterSignal(source, COMSIG_MOVABLE_BUMP) return ..()