From 58b504af2b6d2e9417cc2b64de21b3ec06f56264 Mon Sep 17 00:00:00 2001 From: skull132 Date: Tue, 2 Jun 2015 19:03:24 +0300 Subject: [PATCH] Runtime fix Was creating runtimes upon the application of brute with a severed head. Fixed now. --- code/modules/mob/living/carbon/human/human_damage.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index bd3ee6f3..e4db2e6b 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -56,7 +56,10 @@ if(species && species.has_organ["brain"]) var/datum/organ/internal/brain/sponge = internal_organs_by_name["brain"] - brainloss = min(sponge.damage,maxHealth*2) + if(sponge) + brainloss = min(sponge.damage,maxHealth*2) + else + brainloss = 200 else brainloss = 0 return brainloss