mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 08:11:11 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user