mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-28 22:17:12 +01:00
Merge pull request #5095 from VOREStation/upstream-merge-6098
[MIRROR] Fixes laser pointers targeting through walls
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
/obj/item/device/laser_pointer/proc/laser_act(var/atom/target, var/mob/living/user)
|
||||
if(!(user in (viewers(world.view,target))))
|
||||
return
|
||||
if(!(target in view(user, world.view)))
|
||||
return
|
||||
if(!(world.time - last_used_time >= cooldown))
|
||||
return
|
||||
if (!diode)
|
||||
|
||||
Reference in New Issue
Block a user