From e3036f6eaeac1175c6366e87eff7359c744ee9bf Mon Sep 17 00:00:00 2001 From: checkraisefold Date: Sat, 18 Nov 2017 00:40:33 -0800 Subject: [PATCH] fix 'cannot scream while unconscious' bug (#32814) * fix 'cannot scream while unconscious' bug fixes a bug where it tells you that you can't scream while unconscious while on fire (experienced on Bagil when a plasma fire happened at endround shuttle) * Update species.dm * sanitize code * add the comment back so people know what it doin * change operator other one wouldn't work with the fix, the screaming is supposed to happen while you're in crit --- code/modules/mob/living/carbon/human/species.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index f5b339405d..a48403283a 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -1636,7 +1636,7 @@ GLOBAL_LIST_EMPTY(roundstart_races) else burn_damage = HEAT_DAMAGE_LEVEL_2 burn_damage *= heatmod - if((prob(burn_damage) * 10) / 4) //40% for level 3 damage on humans + if (H.stat < UNCONSCIOUS && (prob(burn_damage) * 10) / 4) //40% for level 3 damage on humans H.emote("scream") H.apply_damage(burn_damage, BURN) else if(H.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT && !(GLOB.mutations_list[COLDRES] in H.dna.mutations))