Changes the way the offhand score is calculated
James Whitehead II [08-17-08 - 13:11]
Changes the way the offhand score is calculated
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)