Quantcast

Stop after seeing the first melee_haste buff when computing focus regen.

Johnny C. Lam [03-14-13 - 15:22]
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
Filename
OvaleState.lua
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