Fixed hunter and warrior weapon comparisons, updated to 1.2b2
Kevin Lyles [04-26-10 - 17:39]
Fixed hunter and warrior weapon comparisons, updated to 1.2b2
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index d177da1..f254cf5 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -439,7 +439,7 @@ local function checkForDualWield()
local class = WeightsWatcher.playerClass
if class == "ROGUE" or class == "DEATHKNIGHT" then
return true
- elseif (class == "HUNTER" or class == "WARRIOR") and level >= 20 then
+ elseif (class == "HUNTER" or class == "WARRIOR") and UnitLevel("player") >= 20 then
return true
elseif class == "SHAMAN" then
return checkForDualWield()
diff --git a/WeightsWatcher.toc b/WeightsWatcher.toc
index 5f83568..a444f4f 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.2b1
+## Version: 1.2b2
## OptionalDeps: AtlasLoot
## SavedVariables: ww_vars
## SavedVariablesPerCharacter: ww_charVars