From ac4af925c18f4f2de7af5ce4f01e43df5cfada4e Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Wed, 27 Jul 2022 16:35:57 -0400 Subject: [PATCH] Fixes runtime that occurs on the last hit of bubblegum (#68695) --- .../mob/living/simple_animal/hostile/megafauna/bubblegum.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index 7348b99dc6d..3518ce977a2 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -274,7 +274,8 @@ Difficulty: Hard . = ..() anger_modifier = clamp(((maxHealth - health)/60),0,20) enrage_time = initial(enrage_time) * clamp(anger_modifier / 20, 0.5, 1) - hallucination_charge.enraged = BUBBLEGUM_SMASH + if(hallucination_charge) + hallucination_charge.enraged = BUBBLEGUM_SMASH if(. > 0 && prob(25)) var/obj/effect/decal/cleanable/blood/gibs/bubblegum/B = new /obj/effect/decal/cleanable/blood/gibs/bubblegum(loc) if(prob(40))