Added support for Insanity

Legion's Shadow Priests have a new default power type called Insanity, so now we need an additional bar to show the player's mana (which all priests still have) while in shadow spec as a priest.
This commit is contained in:
Parnic
2016-05-26 01:09:13 -05:00
parent 6610de6814
commit 1b3b9a1bb9
3 changed files with 75 additions and 0 deletions

View File

@ -16,6 +16,9 @@ function PlayerMana.prototype:init()
self:SetDefaultColor("PlayerEnergy", 218, 231, 31)
self:SetDefaultColor("PlayerFocus", 242, 149, 98)
self:SetDefaultColor("PlayerRunicPower", 62, 54, 152)
if IceHUD.WowVer >= 70000 then
self:SetDefaultColor("PlayerInsanity", 150, 50, 255)
end
end
@ -289,6 +292,8 @@ function PlayerMana.prototype:Update(unit, powertype)
color = "PlayerRunicPower"
elseif (self.manaType == SPELL_POWER_FOCUS) then
color = "PlayerFocus"
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_INSANITY) then
color = "PlayerInsanity"
end
end