From c8e3af62152878c43452f3933f80f6a97cc0076a Mon Sep 17 00:00:00 2001 From: forest2001 Date: Tue, 27 Feb 2024 00:01:21 +0000 Subject: [PATCH] grrr --- code/modules/borer/borer.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/modules/borer/borer.dm b/code/modules/borer/borer.dm index bbadd9a66b1f..664e0b8b28c2 100644 --- a/code/modules/borer/borer.dm +++ b/code/modules/borer/borer.dm @@ -283,12 +283,18 @@ /mob/living/carbon/cortical_borer/Destroy() SSmob.living_misc_mobs -= src - var/datum/mob_hud/H = GLOB.huds[MOB_HUD_BRAINWORM] - H.remove_hud_from(src, src) + + remove_from_all_mob_huds() if(host) for(var/datum/action/innate/borer/action in host.actions) action.hide_from(host) return ..() + +/mob/living/carbon/cortical_borer/remove_from_all_mob_huds() + for(var/datum/mob_hud/hud in GLOB.huds) + if(istype(hud, /datum/mob_hud/brainworm)) + hud.remove_from_hud(src) + hud.remove_hud_from(src, src) //###################################################//