Fixes #28500 : Cryo cells properly compare to a mob's max health

This commit is contained in:
CitadelStationBot
2017-06-17 07:36:24 -05:00
parent f659a0923e
commit c3fe3f674f

View File

@@ -155,7 +155,7 @@
var/turf/T = get_turf(src)
if(occupant)
var/mob/living/mob_occupant = occupant
if(mob_occupant.health >= 100) // Don't bother with fully healed people.
if(mob_occupant.health >= mob_occupant.getMaxHealth()) // Don't bother with fully healed people.
on = FALSE
update_icon()
playsound(T, 'sound/machines/cryo_warning.ogg', volume) // Bug the doctors.