From 4849fc204474636c1a1696324b2bf56a38c68f73 Mon Sep 17 00:00:00 2001 From: Ava Date: Mon, 31 Jul 2023 17:39:55 -0400 Subject: [PATCH] Yellow slimes won't try to shock non-mob food targets --- .../living/simple_mob/subtypes/slime/xenobio/subtypes.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/subtypes.dm b/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/subtypes.dm index b8bfabd664..82cd6346ae 100644 --- a/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/subtypes.dm +++ b/code/modules/mob/living/simple_mob/subtypes/slime/xenobio/subtypes.dm @@ -149,6 +149,12 @@ /mob/living/simple_mob/slime/xenobio/orange ) + +/mob/living/simple_mob/slime/xenobio/yellow/ICheckRangedAttack(atom/A) + if (!ismob(A)) + return FALSE + return ..() + /mob/living/simple_mob/slime/xenobio/yellow/apply_melee_effects(atom/A) ..() if(isliving(A))