Fixes runtime that occurs on the last hit of bubblegum (#68695)

This commit is contained in:
ShizCalev
2022-07-27 16:35:57 -04:00
committed by GitHub
parent 4e65712361
commit ac4af925c1
@@ -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))