prevents swarmers from attacking the AI

This commit is contained in:
Birdtalon
2017-08-14 11:37:27 +01:00
parent 97c8140031
commit 44aca352cf
+4 -1
View File
@@ -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, "<span class='warning'>Your shock has no effect on [src]!</span>")
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, "<span class='warning'>Unable to locate an airlock near [target].</span>")
else
to_chat(src, "<span class='warning'>Target is not on or near any active cameras on the station.</span>")
to_chat(src, "<span class='warning'>Target is not on or near any active cameras on the station.</span>")