From 456469cb597e381cea7ca58a9055eb0c8fd693ea Mon Sep 17 00:00:00 2001 From: Lance Date: Thu, 23 Nov 2023 08:46:50 -0500 Subject: [PATCH] Update hostile.dm --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index a67f7dfe57c8..05c175bb56f6 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -201,9 +201,9 @@ var/dam = max(damage_coeff.getCoeff(P.damtype)*P.damage, 0) dam = round(dam/(maxHealth*0.25), 0.01) if(P.firer in attackers) - attackers[P.firer] = min(attackers[P.firer] + dam, 1) + attackers[P.firer] = clamp(attackers[P.firer] + dam, 0, 1) else - attackers[P.firer] = min(0.25 + dam, 0) + attackers[P.firer] = clamp(0.25 + dam, 0, 1) . = ..() DamageEffect(P.damage, P.damage_type)