From cca2b52e8d0e09e9a49b5079933fd405a2aeebed Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Thu, 19 Sep 2024 09:13:13 -0400 Subject: [PATCH] [s] Fixes a thing. (#26836) --- code/game/objects/items/weapons/caution.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/caution.dm b/code/game/objects/items/weapons/caution.dm index 6790eab4376..fa5b3c6877a 100644 --- a/code/game/objects/items/weapons/caution.dm +++ b/code/game/objects/items/weapons/caution.dm @@ -74,9 +74,11 @@ energy_type = /datum/robot_storage/energy/janitor/landmine is_cyborg = TRUE -/obj/item/stack/caution/proximity_sign/malf/afterattack(atom/target, mob/user) +/obj/item/stack/caution/proximity_sign/malf/afterattack(atom/target, mob/user, proximity) if(!check_allowed_items(target, 1)) return + if(!proximity) + return var/turf/T = get_turf(target) if(is_blocked_turf(T, TRUE)) //can't put mines on a tile that has dense stuff