Fixes green raptor corpses being able to mine rocks (#87558)

## About The Pull Request

Closes #87554

## Changelog
🆑
fix: Fixed green raptor corpses being able to mine rocks
/🆑
This commit is contained in:
SmArtKar
2024-10-30 17:15:30 +03:00
committed by GitHub
parent 0282c2ab5d
commit 1448248edc
+3 -3
View File
@@ -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 ..()