mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-19 14:42:25 +00:00
Adds checking on target to mob shoot_target proc.
This commit is contained in:
@@ -86,6 +86,10 @@
|
|||||||
//The actual top-level ranged attack proc
|
//The actual top-level ranged attack proc
|
||||||
/mob/living/simple_mob/proc/shoot_target(atom/A)
|
/mob/living/simple_mob/proc/shoot_target(atom/A)
|
||||||
set waitfor = FALSE
|
set waitfor = FALSE
|
||||||
|
|
||||||
|
if(!istype(A) || QDELETED(A))
|
||||||
|
return
|
||||||
|
|
||||||
setClickCooldown(get_attack_speed())
|
setClickCooldown(get_attack_speed())
|
||||||
|
|
||||||
face_atom(A)
|
face_atom(A)
|
||||||
|
|||||||
@@ -301,6 +301,10 @@
|
|||||||
|
|
||||||
/mob/living/simple_mob/humanoid/merc/ranged/sniper/shoot_target(atom/A)
|
/mob/living/simple_mob/humanoid/merc/ranged/sniper/shoot_target(atom/A)
|
||||||
set waitfor = FALSE
|
set waitfor = FALSE
|
||||||
|
|
||||||
|
if(!istype(A) || QDELETED(A))
|
||||||
|
return
|
||||||
|
|
||||||
setClickCooldown(get_attack_speed())
|
setClickCooldown(get_attack_speed())
|
||||||
|
|
||||||
face_atom(A)
|
face_atom(A)
|
||||||
|
|||||||
Reference in New Issue
Block a user