mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Sleep clearning effects don't work on mobs who are admin frozen
This commit is contained in:
@@ -344,6 +344,8 @@
|
||||
return SetSleeping(max(sleeping, amount), updating, no_alert)
|
||||
|
||||
/mob/living/SetSleeping(amount, updating = 1, no_alert = FALSE)
|
||||
if(frozen) // If the mob has been admin frozen, sleeping should not be changable
|
||||
return FALSE
|
||||
. = STATUS_UPDATE_STAT
|
||||
if((!!amount) == (!!sleeping)) // We're not changing from + to 0 or vice versa
|
||||
updating = FALSE
|
||||
|
||||
Reference in New Issue
Block a user