Quantcast

Fixed WeightsWatcher.bestGemsForWeight to respect quality limits again

Kevin Lyles [01-23-11 - 21:28]
Fixed WeightsWatcher.bestGemsForWeight to respect quality limits again
Filename
WeightsWatcher.lua
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 1ab5fdc..d69c330 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -780,9 +780,7 @@ function WeightsWatcher.bestGemsForWeight(weightScale)
 	}
 	local bestGems = setmetatable({}, metatable)

-	if not qualityLimit then
-		qualityLimit = #(ww_gemQualityNames)
-	end
+	local qualityLimit = ww_vars.options.gems.qualityLimit or #(ww_gemQualityNames)

 	for _, ilvl in ipairs(ww_gemMinIlvls) do
 		bestGems[ilvl] = {}