Fix focus regeneration calculation hunters.
Johnny C. Lam [03-11-13 - 03:51]
Fix focus regeneration calculation hunters.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@745 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleState.lua b/OvaleState.lua
index ed39951..1fce431 100644
--- a/OvaleState.lua
+++ b/OvaleState.lua
@@ -54,6 +54,14 @@ function OvaleState:UpdatePowerRates()
end
self.powerRate.energy = 10 * OvalePaperDoll:GetMeleeHasteMultiplier()
+ self.powerRate.focus = 4 * OvalePaperDoll:GetRangedHasteMultiplier()
+
+ -- Strip off 10% ranged attack speed bonus that doesn't count toward focus regeneration.
+ for _, v in pairs(OvaleData.buffSpellList.melee_haste) do
+ if OvaleState:GetAura("player", v) then
+ self.powerRate.focus = self.powerRate.focus / 1.1
+ end
+ end
if OvaleData.className == "MONK" then
-- Way of the Monk (monk)
@@ -89,8 +97,6 @@ function OvaleState:UpdatePowerRates()
self.powerRate.energy = self.powerRate.energy * 2
end
end
-
- self.powerRate.focus = 4 * OvalePaperDoll:GetMeleeHasteMultiplier()
end
function OvaleState:Reset()