Fixing hostile mobs (#5600)

Indentation screwed up all hostile mobs. Basically they are ignoring all living things currently. Fixes #5599
This commit is contained in:
Mykhailo Bykhovtsev
2018-11-13 21:31:27 +02:00
committed by Erki
parent 0c96260480
commit 44753b6034
2 changed files with 40 additions and 2 deletions
@@ -302,8 +302,9 @@ mob/living/simple_animal/hostile/hitby(atom/movable/AM as mob|obj,var/speed = TH
if (isliving(current))
var/mob/living/M = current
current_health = M.health
if(L.health < current_health)
return TRUE
if(L.health < current_health)
return TRUE
return FALSE
/mob/living/simple_animal/hostile/proc/validator_mecha(var/obj/mecha/M, var/atom/current)
if(isliving(current)) // We prefer mobs over anything else