mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
Fixing mobs and turrets (#6444)
This commit is contained in:
committed by
Werner
parent
5bd5eea6ed
commit
71a03e3775
@@ -251,9 +251,7 @@ mob/living/simple_animal/hostile/hitby(atom/movable/AM as mob|obj,var/speed = TH
|
||||
return FALSE
|
||||
|
||||
var/target_hit = FALSE
|
||||
var/flags = PASSTABLE
|
||||
if(istype(projectiletype, /obj/item/projectile/beam))
|
||||
flags |= (PASSGLASS|PASSGRILLE)
|
||||
var/flags = ispath(projectiletype, /obj/item/projectile/beam) ? PASSTABLE|PASSGLASS|PASSGRILLE : PASSTABLE
|
||||
for(var/mob/M in check_trajectory(target_mob, src, pass_flags=flags))
|
||||
if(M == target_mob)
|
||||
target_hit = TRUE
|
||||
|
||||
Reference in New Issue
Block a user