Merge pull request #28503 from Expletive/fix-28500

Fixes #28500 : Cryo cells properly compare to a mob's max health
This commit is contained in:
Leo
2017-06-17 09:36:06 -03:00
committed by GitHub

View File

@@ -113,7 +113,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.