Added support for the Pain mana type

This commit is contained in:
Parnic
2016-08-18 23:00:06 -05:00
parent a5de40f087
commit 880e2e3278
2 changed files with 8 additions and 2 deletions

View File

@ -20,6 +20,7 @@ function PlayerMana.prototype:init()
self:SetDefaultColor("PlayerInsanity", 150, 50, 255)
self:SetDefaultColor("PlayerFury", 255, 50, 255)
self:SetDefaultColor("PlayerMaelstrom", 62, 54, 152)
self:SetDefaultColor("PlayerPain", 255, 50, 255)
end
end
@ -246,7 +247,7 @@ end
function PlayerMana.prototype:TreatEmptyAsFull()
return self.manaType == SPELL_POWER_RAGE or self.manaType == SPELL_POWER_RUNIC_POWER
or (IceHUD.WowVer >= 70000 and (self.manaType == SPELL_POWER_LUNAR_POWER or self.manaType == SPELL_POWER_INSANITY
or self.manaType == SPELL_POWER_FURY or self.manaType == SPELL_POWER_MAELSTROM))
or self.manaType == SPELL_POWER_FURY or self.manaType == SPELL_POWER_PAIN or self.manaType == SPELL_POWER_MAELSTROM))
end
function PlayerMana.prototype:UpdateEvent(event, unit, powertype)
@ -301,6 +302,8 @@ function PlayerMana.prototype:Update(unit, powertype)
color = "PlayerFury"
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_MAELSTROM) then
color = "PlayerMaelstrom"
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_PAIN) then
color = "PlayerPain"
end
end

View File

@ -22,6 +22,7 @@ function IceTargetMana.prototype:init(moduleName, unit)
self:SetDefaultColor("TargetInsanity", 150, 50, 255)
self:SetDefaultColor("TargetFury", 255, 50, 255)
self:SetDefaultColor("TargetMaelstrom", 52, 64, 221)
self:SetDefaultColor("TargetPain", 255, 50, 255)
end
end
@ -116,6 +117,8 @@ function IceTargetMana.prototype:Update(unit)
self.color = "TargetFury"
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_MAELSTROM) then
self.color = "TargetMaelstrom"
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_PAIN) then
self.color = "TargetPain"
end
if (self.tapped) then
@ -136,7 +139,7 @@ end
function IceTargetMana.prototype:TreatEmptyAsFull(manaType)
return manaType == SPELL_POWER_RAGE or manaType == SPELL_POWER_RUNIC_POWER
or (IceHUD.WowVer >= 70000 and (manaType == SPELL_POWER_LUNAR_POWER or manaType == SPELL_POWER_INSANITY
or manaType == SPELL_POWER_FURY or self.manaType == SPELL_POWER_MAELSTROM))
or manaType == SPELL_POWER_FURY or manaType == SPELL_POWER_PAIN or manaType == SPELL_POWER_MAELSTROM))
end
-- OVERRIDE