From acc8498d62d8d3e0c8ed212808ccdde0d7433297 Mon Sep 17 00:00:00 2001 From: FalseIncarnate Date: Thu, 26 Nov 2015 02:21:48 -0500 Subject: [PATCH] Fruit Weapon Targetting Fix Fixes fruit weapons not properly targeting the intended limb and thus not properly checking protection from stinging. --- code/modules/hydroponics/grown.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 5a34054c871..9367c5b056e 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -300,6 +300,9 @@ // TODO: refactor all food paths to be less horrible and difficult to work with in this respect. ~Z if(!istype(M) || (can_operate(M) && do_surgery(M,user,src))) return 0 + if(!def_zone) + def_zone = check_zone(user.zone_sel.selecting) + user.lastattacked = M M.lastattacker = user user.attack_log += "\[[time_stamp()]\] Attacked [key_name(M)] with [name] (INTENT: [uppertext(user.a_intent)]) (DAMTYE: [uppertext(damtype)])"