From 52fb2d53e4af19b86085de4a6b660e80337b01f6 Mon Sep 17 00:00:00 2001 From: Segrain Date: Fri, 23 Jun 2023 10:56:14 +0400 Subject: [PATCH] Hive core and dead larvas. --- code/modules/cm_aliens/structures/special/pylon_core.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/cm_aliens/structures/special/pylon_core.dm b/code/modules/cm_aliens/structures/special/pylon_core.dm index 08aa2f86c1bc..40b4ad8e1718 100644 --- a/code/modules/cm_aliens/structures/special/pylon_core.dm +++ b/code/modules/cm_aliens/structures/special/pylon_core.dm @@ -137,7 +137,7 @@ // Handle spawning larva if core is connected to a hive if(linked_hive) for(var/mob/living/carbon/xenomorph/larva/L in range(2, src)) - if(!L.ckey && L.burrowable && !QDELETED(L)) + if((!L.ckey || L.stat == DEAD) && L.burrowable && (L.hivenumber == linked_hive.hivenumber) && !QDELETED(L)) visible_message(SPAN_XENODANGER("[L] quickly burrows into \the [src].")) linked_hive.stored_larva++ linked_hive.hive_ui.update_burrowed_larva()