mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Hostile mobs don't get a target if the damage dealt is 0 or less.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user