Merge pull request #3535 from CHOMPStation2/upstream-merge-12026

[MIRROR] [MIRROR] Adds checking on target to mob shoot_target proc.
This commit is contained in:
Nadyr
2022-01-09 20:11:45 -05:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -86,6 +86,10 @@
//The actual top-level ranged attack proc
/mob/living/simple_mob/proc/shoot_target(atom/A)
set waitfor = FALSE
if(!istype(A) || QDELETED(A))
return
setClickCooldown(get_attack_speed())
face_atom(A)
@@ -304,6 +304,10 @@
/mob/living/simple_mob/humanoid/merc/ranged/sniper/shoot_target(atom/A)
set waitfor = FALSE
if(!istype(A) || QDELETED(A))
return
setClickCooldown(get_attack_speed())
face_atom(A)