Skip to content

Commit

Permalink
adds removal logic to eggs bursting
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Nov 28, 2023
1 parent 750591c commit 2d02a50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/modules/cm_aliens/structures/egg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,8 @@ 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)
. = ..()
owner = null
if(owner)
var/datum/behavior_delegate/carrier_eggsac/behavior = owner.behavior_delegate
behavior.remove_egg_owner(src)
if(life_timer)
deltimer(life_timer)

0 comments on commit 2d02a50

Please sign in to comment.