/
-- 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) |