From c7e8ff476a2fbae3654794173d38f941a2fcc775 Mon Sep 17 00:00:00 2001 From: Birdtalon Date: Thu, 9 Nov 2023 18:39:02 +0000 Subject: [PATCH] unregisters the signal if we burst and already set owner to null --- code/modules/cm_aliens/structures/egg.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/cm_aliens/structures/egg.dm b/code/modules/cm_aliens/structures/egg.dm index 23be30eaef2a..73a2788d9a32 100644 --- a/code/modules/cm_aliens/structures/egg.dm +++ b/code/modules/cm_aliens/structures/egg.dm @@ -338,6 +338,7 @@ SPECIAL EGG USED BY EGG CARRIER if(last_refreshed + CARRIER_EGG_UNSUSTAINED_LIFE < world.time) start_unstoppable_decay() +///Burst the egg without hugger release after a 10 second timer & remove the life timer. /obj/effect/alien/egg/carrier_egg/proc/start_unstoppable_decay() addtimer(CALLBACK(src, PROC_REF(Burst), TRUE), 10 SECONDS) if(life_timer) @@ -345,9 +346,9 @@ SPECIAL EGG USED BY EGG CARRIER /obj/effect/alien/egg/carrier_egg/Burst(kill, instant_trigger, mob/living/carbon/xenomorph/X, is_hugger_player_controlled) . = ..() + UnregisterSignal(owner, COMSIG_PARENT_QDELETING) owner = null - /obj/effect/alien/egg/carrier_egg/proc/cleanup_owner() SIGNAL_HANDLER owner = null