From 9637366a60211662adee528dce174dc24b4be5df Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Wed, 5 Sep 2012 22:16:47 -0500 Subject: [PATCH] Fixed comparison with ranged weapons --- WeightsWatcher.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index 9380086..de9d662 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -558,6 +558,17 @@ local function determineCompareMethod(currentSlot, compareSlot, compareSlot2, cu end end + -- ranged weapons are two-handers now + if currentSlot == ww_localizedSlotNames["ranged"] then + currentSlot = ww_localizedSlotNames["two-hand"] + end + if compareSlot == ww_localizedSlotNames["ranged"] then + compareSlot = ww_localizedSlotNames["two-hand"] + end + if compareSlot2 == ww_localizedSlotNames["ranged"] then + compareSlot2 = ww_localizedSlotNames["two-hand"] + end + if currentSlot == ww_localizedSlotNames["two-hand"] then return "both" elseif currentSlot == ww_localizedSlotNames["main hand"] then -- 1.7.9.5