Fixes shards having unlimited afterattack range

Fixes glass shards and such being able to be smacked into anything on the screen regardless of the targets location to shatter and mess up your hands.
This commit is contained in:
Verkister
2022-12-03 13:58:35 +02:00
committed by GitHub
parent 7658072651
commit 2a1ff291cb
@@ -55,7 +55,9 @@
return
return ..()
/obj/item/material/shard/afterattack(var/atom/target, mob/living/carbon/human/user as mob)
/obj/item/weapon/material/shard/afterattack(var/atom/target, mob/living/carbon/human/user as mob, proximity)
if(!proximity)
return
var/active_hand //hand the shard is in
var/will_break = FALSE
var/protected_hands = FALSE //this is a fucking mess