Adds checking on target to mob shoot_target proc.

This commit is contained in:
MistakeNot4892
2021-12-03 09:55:52 +11:00
parent a6c23c66b5
commit ee5dc0e2ec
2 changed files with 8 additions and 0 deletions

View File

@@ -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)

View File

@@ -301,6 +301,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)