Quantcast

Ascension in 5.1 grants 15% increased energy regen for monks.

Johnny C. Lam [11-28-12 - 04:03]
Ascension in 5.1 grants 15% increased energy regen for monks.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@644 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.toc
OvaleState.lua
diff --git a/Ovale.toc b/Ovale.toc
index a64a914..b552faa 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -1,5 +1,5 @@
-## Interface: 50001
-## X-Min-Interface: 50000
+## Interface: 50100
+## X-Min-Interface: 50100
 ## Title: Ovale Spell Priority
 ## Notes: Show the icon of the next spell to cast
 ## Notes-frFR: Affiche l'icône du prochain sort à lancer
diff --git a/OvaleState.lua b/OvaleState.lua
index 2e5e854..9932baf 100644
--- a/OvaleState.lua
+++ b/OvaleState.lua
@@ -50,12 +50,19 @@ function OvaleState:UpdatePowerRates()
 	for k,v in pairs(OvaleData.power) do
 		self.powerRate[k] = 0
 	end
-
+
 	self.powerRate.energy = 10 * OvaleAura.meleeHaste

-	-- Stance of the Sturdy Ox (brewmaster monk)
-	if OvaleData.className == "MONK" and OvaleAura.mastery == 1 and OvaleAura.stance == 1 then
-		self.powerRate.energy = self.powerRate.energy * 1.1
+	if OvaleData.className == "MONK" then
+		-- Ascension (monk)
+		if OvaleData:GetTalentPoints(8) > 0 then
+			self.powerRate.energy = self.powerRate.energy * 1.15
+		end
+
+		-- Stance of the Sturdy Ox (brewmaster monk)
+		if OvaleAura.mastery == 1 and OvaleAura.stance == 1 then
+			self.powerRate.energy = self.powerRate.energy * 1.1
+		end
 	end

 	-- Adrenaline Rush (rogue)