From 3b3b805bacd82c883a4a2c0f57a1ed9cce35836f Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 14 Mar 2013 15:22:30 +0000 Subject: [PATCH] Stop after seeing the first melee_haste buff when computing focus regen. This is a sanity check just in case multiple buffs of the same type appear in your buff bar, and is also slightly more efficient. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@769 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleState.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/OvaleState.lua b/OvaleState.lua index 5e2345f..2a4b44e 100644 --- a/OvaleState.lua +++ b/OvaleState.lua @@ -60,6 +60,7 @@ function OvaleState:UpdatePowerRates() for _, v in pairs(OvaleData.buffSpellList.melee_haste) do if OvaleState:GetAura("player", v) then self.powerRate.focus = self.powerRate.focus / 1.1 + break end end -- 1.7.9.5