Quantcast

Fixed an issue with meta/cogwheel gems not being included in the score that ignores socket colors

Kevin Lyles [02-26-11 - 18:59]
Fixed an issue with meta/cogwheel gems not being included in the score that ignores socket colors
Version 1.4r13
Filename
WeightsWatcher.lua
WeightsWatcher.toc
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index bb8277a..47b489f 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -94,9 +94,12 @@ local ww_weightIdealCacheWeightMetatable = {
 			color = ww_englishSocketColors[color]
 			table.insert(bestGems, idealGems[color])
 			gemScore = gemScore + idealGems[color .. "Score"]
-			if breakSocketColors and color ~= "meta" and color ~= "cogwheel" then
-				table.insert(bestGemsIgnoreSocket, idealGems.prismatic)
-				gemScoreIgnoreSocket = gemScoreIgnoreSocket + idealGems.prismaticScore
+			if breakSocketColors then
+				if color ~= "meta" and color ~= "cogwheel" then
+					color = "prismatic"
+				end
+				table.insert(bestGemsIgnoreSocket, idealGems[color])
+				gemScoreIgnoreSocket = gemScoreIgnoreSocket + idealGems[color .. "Score"]
 			end
 		end
 		local gemStats = WeightsWatcher.getGemStats(bestGems)
diff --git a/WeightsWatcher.toc b/WeightsWatcher.toc
index 9b5cf17..86dc0de 100644
--- a/WeightsWatcher.toc
+++ b/WeightsWatcher.toc
@@ -2,7 +2,7 @@
 ## Title: Weights Watcher
 ## Notes: Ranks gear according to customizable stat weights
 ## Author: The Flying Squirrels
-## Version: 1.4r12
+## Version: 1.4r13
 ## OptionalDeps: AtlasLoot
 ## SavedVariables: ww_vars
 ## SavedVariablesPerCharacter: ww_charVars