fix instadeath bug (#9223)

This commit is contained in:
Matt Atlas
2020-06-27 19:56:17 +03:00
committed by GitHub
parent c3c4ad8ead
commit 88403c24f6
4 changed files with 5 additions and 5 deletions
@@ -92,7 +92,7 @@
hud_type = /datum/hud_data/construct
/datum/species/skeleton/handle_death_check(var/mob/living/carbon/human/H)
if(H.get_total_health() <= total_health)
if(H.get_total_health() <= 0)
return TRUE
return FALSE
@@ -146,7 +146,7 @@
qdel(H)
/datum/species/apparition/handle_death_check(var/mob/living/carbon/human/H)
if(H.get_total_health() <= total_health)
if(H.get_total_health() <= 0)
return TRUE
return FALSE
@@ -184,7 +184,7 @@
return current_flags
/datum/species/diona/handle_death_check(var/mob/living/carbon/human/H)
if(H.get_total_health() <= total_health)
if(H.get_total_health() <= 0)
return TRUE
return FALSE
@@ -119,7 +119,7 @@ var/global/list/golem_types = list("Coal Golem",
qdel(H)
/datum/species/golem/handle_death_check(var/mob/living/carbon/human/H)
if(H.get_total_health() <= total_health)
if(H.get_total_health() <= 0)
return TRUE
return FALSE
@@ -298,7 +298,7 @@ datum/species/machine/handle_post_spawn(var/mob/living/carbon/human/H)
check_tag(H, H.client)
/datum/species/machine/handle_death_check(var/mob/living/carbon/human/H)
if(H.get_total_health() <= total_health)
if(H.get_total_health() <= 0)
return TRUE
return FALSE