Skip to content

Commit

Permalink
Fix check_can_use() condition to include
Browse files Browse the repository at this point in the history
target.is_dead()
  • Loading branch information
Zonespace27 committed Nov 17, 2023
1 parent 145da65 commit 6ea7be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/specialist/sniper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
target.overlays -= lockon_direction_icon
qdel(laser_beam)

if(!check_can_use(target, TRUE))
if(!check_can_use(target, TRUE) || target.is_dead())
return

var/obj/projectile/aimed_proj = sniper_rifle.in_chamber
Expand Down

0 comments on commit 6ea7be1

Please sign in to comment.