Quantcast

Fixed thrown weapons's dps to be parsed as ranged dps

Kevin Lyles [07-13-10 - 07:55]
Fixed thrown weapons's dps to be parsed as ranged dps
Bumped to 1.2b9
Filename
WeightsWatcher.lua
WeightsWatcher.toc
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 663fa71..c79f514 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -1093,7 +1093,6 @@ end
 function WeightsWatcher.getItemStats(link)
 	local textL, textR, pattern, func, start
 	local normalStats, nonStats, socketList, socketBonusStat, useEffects, stackingEquipEffects = WeightsWatcher.newStatTable(), {}, {}, WeightsWatcher.newStatTable(), {}, {}
-	local ranged = false

 	-- Populate hidden tooltip
 	WeightsWatcherHiddenTooltip:ClearLines()
@@ -1140,7 +1139,7 @@ function WeightsWatcher.getItemStats(link)
 		end
 	end

-	if nonStats["slot"] == "ranged" or nonStats["slot"] == "projectile" then
+	if nonStats["slot"] == "ranged" or nonStats["slot"] == "thrown" or nonStats["slot"] == "projectile" then
 		normalStats["ranged dps"] = rawget(normalStats, "dps")
 		normalStats["dps"] = nil
 	end
diff --git a/WeightsWatcher.toc b/WeightsWatcher.toc
index 93388ee..59444be 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.2b8
+## Version: 1.2b9
 ## OptionalDeps: AtlasLoot
 ## SavedVariables: ww_vars
 ## SavedVariablesPerCharacter: ww_charVars