Allow "scale mana color" to work with class-specific mana types

This commit is contained in:
Parnic
2016-09-04 08:05:00 -05:00
parent e36b87a407
commit 29dc1b8955

View File

@ -282,11 +282,10 @@ function PlayerMana.prototype:Update(unit, powertype)
end
local color = "PlayerMana"
if (self.moduleSettings.scaleManaColor) then
color = "ScaledManaColor"
end
if not (self.alive) then
color = "Dead"
elseif (self.moduleSettings.scaleManaColor) then
color = "ScaledManaColor"
else
if (self.manaType == SPELL_POWER_RAGE) then
color = "PlayerRage"