[MIRROR] [no gbp] fixes sleeping mobs getting the surgery (#28763)

* [no gbp] fixes sleeping mobs getting the surgery (#84732)

fixes #84617

i did test this, no clue how this got missed...

* [no gbp] fixes sleeping mobs getting the surgery

---------

Co-authored-by: Afevis <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-07-11 19:38:51 +05:30
committed by GitHub
co-authored by Afevis
parent 76f5a81bd2
commit 4784054eea
+1 -1
View File
@@ -194,7 +194,7 @@
return
if(target.stat >= UNCONSCIOUS)
var/datum/mood_event/surgery/target_mood_event = target.mob_mood.mood_events[SURGERY_MOOD_CATEGORY]
if(target_mood_event?.surgery_completed) //don't give sleeping mobs trauma. that said, if they fell asleep mid-surgery after already getting the bad mood, lets make sure they wake up to a (hopefully) happy memory.
if(!target_mood_event || target_mood_event.surgery_completed) //don't give sleeping mobs trauma. that said, if they fell asleep mid-surgery after already getting the bad mood, lets make sure they wake up to a (hopefully) happy memory.
return
switch(surgery_state)
if(SURGERY_STATE_STARTED)