mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
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:
committed by
Erki
parent
0c96260480
commit
44753b6034
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user