From aee7d69412129caad29205ac0a02c0086fa38ce0 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sun, 9 Mar 2014 22:32:17 +0400 Subject: [PATCH] Stopped braindamage effect from dealing 4 digit amounts of damage to brain organ. Conflicts: code/modules/virus2/effect.dm --- code/modules/virus2/effect.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/virus2/effect.dm b/code/modules/virus2/effect.dm index 48dbafde0b8..28cbaacac54 100644 --- a/code/modules/virus2/effect.dm +++ b/code/modules/virus2/effect.dm @@ -251,7 +251,8 @@ if(istype(mob, /mob/living/carbon/human)) var/mob/living/carbon/human/H = mob var/datum/organ/internal/brain/B = H.internal_organs["brain"] - B.take_damage(5) + if (B.damage < B.min_broken_damage) + B.take_damage(5) else mob.setBrainLoss(50)