Hostile mobs don't get a target if the damage dealt is 0 or less.

This commit is contained in:
Nerd Lord
2015-12-05 10:58:08 -05:00
parent 58a3f742c6
commit 953f175d2e
@@ -182,7 +182,7 @@
/mob/living/simple_animal/hostile/adjustBruteLoss(damage)
..(damage)
if(!ckey && !stat && search_objects < 3)//Not unconscious, and we don't ignore mobs
if(damage > 0 && !ckey && !stat && search_objects < 3)//Not unconscious, and we don't ignore mobs
if(search_objects)//Turn off item searching and ignore whatever item we were looking at, we're more concerned with fight or flight
search_objects = 0
target = null