From 44aca352cf6d07bf58e9dc302a647fc3237548d6 Mon Sep 17 00:00:00 2001 From: Birdtalon Date: Mon, 14 Aug 2017 11:37:27 +0100 Subject: [PATCH] prevents swarmers from attacking the AI --- code/modules/mob/living/silicon/ai/ai.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 84f731d3669..503e1a6fcb4 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -697,6 +697,9 @@ var/list/ai_verbs_default = list( return /mob/living/silicon/ai/attack_animal(mob/living/simple_animal/M) + if(istype(M, /mob/living/simple_animal/hostile/swarmer)) //Swarmers shouldn't be killing the AI + to_chat(M, "Your shock has no effect on [src]!") + return if(M.melee_damage_upper == 0) M.custom_emote(1, "[M.friendly] [src]") else @@ -1259,4 +1262,4 @@ var/list/ai_verbs_default = list( to_chat(src, "Unable to locate an airlock near [target].") else - to_chat(src, "Target is not on or near any active cameras on the station.") \ No newline at end of file + to_chat(src, "Target is not on or near any active cameras on the station.")