From b013810652e55afed4e153f6f8fa286f4e960bda Mon Sep 17 00:00:00 2001 From: XeonMations Date: Tue, 19 Nov 2024 14:40:26 +0200 Subject: [PATCH] Update nymph.dm --- .../simple_animal/hostile/retaliate/nymph.dm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/nymph.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/nymph.dm index 6ed5076220c3b..08c2802c975b7 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/nymph.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/nymph.dm @@ -175,18 +175,22 @@ if(isdiona(arrived)) if(mind != null || stat == DEAD || is_drone) //Does the nymph on the ground have a mind, dead or a drone? return // If so, ignore the diona - var/mob/living/carbon/human/H = arrived - var/list/limbs_to_heal = H.get_missing_limbs() + var/mob/living/carbon/human/arrived_diona = arrived + var/list/limbs_to_heal = arrived_diona.get_missing_limbs() if(!LAZYLEN(limbs_to_heal)) return - playsound(H, 'sound/creatures/venus_trap_hit.ogg', 25, 1) + toggle_ai(AI_OFF) + if(!do_after(arrived_diona, 5 SECONDS, source, progress = TRUE)) + toggle_ai(AI_IDLE) + return + playsound(arrived_diona, 'sound/creatures/venus_trap_hit.ogg', 25, 1) var/obj/item/bodypart/healed_limb = pick(limbs_to_heal) - H.regenerate_limb(healed_limb) - for(var/obj/item/bodypart/body_part in H.bodyparts) + arrived_diona.regenerate_limb(healed_limb) + for(var/obj/item/bodypart/body_part in arrived_diona.bodyparts) if(body_part.body_zone == healed_limb) body_part.brute_dam = brute_damage body_part.burn_dam = fire_damage - balloon_alert(H, "[H] assimilates [src]") + balloon_alert(arrived_diona, "[arrived_diona] assimilates [src]") QDEL_NULL(src) /mob/living/simple_animal/hostile/retaliate/nymph/handle_mutations_and_radiation()