Sleep clearning effects don't work on mobs who are admin frozen

This commit is contained in:
SteelSlayer
2019-12-08 02:45:18 -06:00
parent 1029bf7e7a
commit 03b9dafae4
2 changed files with 9 additions and 6 deletions
+2
View File
@@ -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