Hostile mobs update (#6356)

This commit is contained in:
Mykhailo Bykhovtsev
2019-05-05 23:38:14 +02:00
committed by Werner
parent f693924ec9
commit b4ef65f3c7
2 changed files with 45 additions and 2 deletions
@@ -251,8 +251,10 @@ mob/living/simple_animal/hostile/hitby(atom/movable/AM as mob|obj,var/speed = TH
return FALSE
var/target_hit = FALSE
for(var/mob/M in check_trajectory(target_mob, src, pass_flags=PASSTABLE))
var/flags = PASSTABLE
if(istype(projectiletype, /obj/item/projectile/beam))
flags |= (PASSGLASS|PASSGRILLE)
for(var/mob/M in check_trajectory(target_mob, src, pass_flags=flags))
if(M == target_mob)
target_hit = TRUE
if((M.faction == faction) || (M in friends))