From 6c11f7f3ab091dc714eb3bec414c846613b4d622 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sat, 26 Feb 2011 12:59:59 -0600 Subject: [PATCH] Fixed an issue with meta/cogwheel gems not being included in the score that ignores socket colors Version 1.4r13 --- WeightsWatcher.lua | 9 ++++++--- WeightsWatcher.toc | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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 -- 1.7.9.5