From 505a9ab8cc7cc6506eaa7f94bd353afd11ca4544 Mon Sep 17 00:00:00 2001 From: Vero <73014819+vero5123@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:37:58 -0400 Subject: [PATCH] Fixes xenos ability to use corrosive acid after death (#6069) # About the pull request Fixes #6066 # Explain why it's good for the game bug fix # Changelog :cl: fix: xenos can no longer attempt to use corrosive acid after death /:cl: Co-authored-by: DOOM --- .../living/carbon/xenomorph/abilities/ability_helper_procs.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/ability_helper_procs.dm b/code/modules/mob/living/carbon/xenomorph/abilities/ability_helper_procs.dm index 41459353ec1e..9bfc98a7091d 100644 --- a/code/modules/mob/living/carbon/xenomorph/abilities/ability_helper_procs.dm +++ b/code/modules/mob/living/carbon/xenomorph/abilities/ability_helper_procs.dm @@ -1,6 +1,8 @@ //Corrosive acid is consolidated -- it checks for specific castes for strength now, but works identically to each other. //The acid items are stored in XenoProcs. /mob/living/carbon/xenomorph/proc/corrosive_acid(atom/O, acid_type, plasma_cost) + if(!check_state()) + return if(!O.Adjacent(src)) if(istype(O,/obj/item/explosive/plastic)) var/obj/item/explosive/plastic/E = O