Quantcast

Update the power regen values if the power display changes.

Johnny C. Lam [11-17-13 - 16:29]
Update the power regen values if the power display changes.

This fixes a bug where changing from caster form to cat form on druids
showed the energy regen in cat form to be the mana regen from caster
form.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1188 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvalePower.lua
diff --git a/OvalePower.lua b/OvalePower.lua
index 0cbc34a..26bae13 100644
--- a/OvalePower.lua
+++ b/OvalePower.lua
@@ -129,6 +129,7 @@ end
 function OvalePower:UNIT_DISPLAYPOWER(event, unitId)
 	if unitId == "player" then
 		self:UpdatePowerType()
+		self:UpdatePowerRegen()
 	end
 end