Quantcast

Fixed weapon comparisons when comparing a one-hand weapon to an equipped two-hand weapon on dual-wield-capable classes

Kevin Lyles [06-06-10 - 06:55]
Fixed weapon comparisons when comparing a one-hand weapon to an equipped two-hand weapon on dual-wield-capable classes
Filename
WeightsWatcher.lua
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 0e7c705..58c57f4 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -477,7 +477,9 @@ local function determineCompareMethod(currentSlot, compareSlot, compareSlot2, cu
 			return "empty"
 		end
 	elseif currentSlot == "one-hand" then
-		if checkForDualWield() then
+		if compareSlot == "two-hand" then
+			return "1"
+		elseif checkForDualWield() then
 			if compareSlot and compareSlot2 then
 				return "worst"
 			end