From 18a552af0a940e12a26257c038e2f1e327a8ffce Mon Sep 17 00:00:00 2001 From: cib Date: Mon, 18 Feb 2013 23:35:51 +0100 Subject: [PATCH] Fixed problem where hostile animals would attack even the dead. --- code/modules/mob/living/simple_animal/simple_animal.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index b8b6d31312..c34b4af304 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -446,7 +446,7 @@ /mob/living/simple_animal/proc/SA_attackable(target_mob) if (isliving(target_mob)) var/mob/living/L = target_mob - if(!L.stat || L.health <= 0) + if(!L.stat && L.health >= 0) return (0) if (istype(target_mob,/obj/mecha)) var/obj/mecha/M = target_mob