Quantcast

Improve energy regeneration estimation for combat rogues.

Johnny C. Lam [03-05-13 - 11:29]
Improve energy regeneration estimation for combat rogues.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@728 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleState.lua
diff --git a/OvaleState.lua b/OvaleState.lua
index f0d189a..5700dd6 100644
--- a/OvaleState.lua
+++ b/OvaleState.lua
@@ -67,9 +67,21 @@ function OvaleState:UpdatePowerRates()
 		end
 	end

-	-- Adrenaline Rush (rogue)
-	if OvaleData.className == "ROGUE" and OvaleState:GetAura("player", 13750, true) then
-		self.powerRate.energy = self.powerRate.energy * 2
+	if OvaleData.className == "ROGUE" then
+		-- Blade Flurry (combat rogue)
+		if OvaleState:GetAura("player", 13877, true) then
+			self.powerRate.energy = self.powerRate.energy * 0.8
+		end
+
+		-- Vitality (combat rogue)
+		if OvaleStance:IsSpecialization(2) then
+			self.powerRate.energy = self.powerRate.energy * 1.2
+		end
+
+		-- Adrenaline Rush (rogue)
+		if OvaleState:GetAura("player", 13750, true) then
+			self.powerRate.energy = self.powerRate.energy * 2
+		end
 	end

 	self.powerRate.focus = 4 * OvalePaperDoll.meleeHaste