From 66ed2cd4d2eaa6824c59fe92747b3e64acc7191c Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sun, 17 Aug 2008 13:11:58 +0000 Subject: [PATCH] Changes the way the offhand score is calculated --- DressToKill.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DressToKill.lua b/DressToKill.lua index 40e5023..7a0dc60 100644 --- a/DressToKill.lua +++ b/DressToKill.lua @@ -191,8 +191,8 @@ local function scanFunction(weightFunction) -- If we equipped offhand, then score it too if oh_equipped then local oh_link = GetInventoryItemLink("player", offslot) or linen_shirt - local oh_score = weightFunction(oh_link, offslot) - score - score = score + oh_score + local oh_score = weightFunction(oh_link, offslot) + score = oh_score debug(L["Got score of %s for %s/%s"], score, mh_link, oh_link) else debug(L["Failed to equip %s"], link) -- 1.7.9.5