From 953f175d2e77b0b903300033a8917eb4abae09e8 Mon Sep 17 00:00:00 2001 From: Nerd Lord Date: Sat, 5 Dec 2015 10:58:08 -0500 Subject: [PATCH] Hostile mobs don't get a target if the damage dealt is 0 or less. --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 9ea2a759b4c..f4b2e6d4044 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -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