mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user