Fixed problem where hostile animals would attack even the dead.

This commit is contained in:
cib
2013-02-18 23:35:51 +01:00
parent 0e70040810
commit 18a552af0a

View File

@@ -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