mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Hostile mobs update (#6356)
This commit is contained in:
committed by
Werner
parent
f693924ec9
commit
b4ef65f3c7
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user