From cb0ce865986ac90c1dcb95cff7ec6866d1076ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A1culo?= <115740526+TaculoTaculo@users.noreply.github.com> Date: Wed, 20 Dec 2023 20:24:38 -0300 Subject: [PATCH] Fixes Fragment Runtime (#1751) fixes a runtime and a small visual bug --- .../living/simple_animal/abnormality/teth/fragment.dm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/abnormality/teth/fragment.dm b/code/modules/mob/living/simple_animal/abnormality/teth/fragment.dm index d55287946923..ae1354dc09d5 100644 --- a/code/modules/mob/living/simple_animal/abnormality/teth/fragment.dm +++ b/code/modules/mob/living/simple_animal/abnormality/teth/fragment.dm @@ -71,6 +71,8 @@ /mob/living/simple_animal/hostile/abnormality/fragment/Destroy() QDEL_NULL(legs) + if(!particle_note) + return ..() particle_note.fadeout() particle_song.fadeout() return ..() @@ -124,15 +126,17 @@ SLEEP_CHECK_DEATH(3) animate(src, pixel_y = 0, time = 0) + QDEL_NULL(legs) flick("fragment_song_transition" , src) SLEEP_CHECK_DEATH(5) icon_state = "fragment_breach" pixel_y = 0 - QDEL_NULL(legs) - particle_note.fadeout() - particle_song.fadeout() can_act = TRUE song_cooldown = world.time + song_cooldown_time + if(!particle_note) + return + particle_note.fadeout() + particle_song.fadeout() /mob/living/simple_animal/hostile/abnormality/fragment/NeutralEffect(mob/living/carbon/human/user, work_type, pe) if(prob(40))