From 880e2e32782f5c351f936671fe5dce15cbe1efb4 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 18 Aug 2016 23:00:06 -0500 Subject: [PATCH] Added support for the Pain mana type --- modules/PlayerMana.lua | 5 ++++- modules/TargetMana.lua | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/PlayerMana.lua b/modules/PlayerMana.lua index 08440fb..da71918 100644 --- a/modules/PlayerMana.lua +++ b/modules/PlayerMana.lua @@ -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 diff --git a/modules/TargetMana.lua b/modules/TargetMana.lua index f664bd0..5adbf9b 100644 --- a/modules/TargetMana.lua +++ b/modules/TargetMana.lua @@ -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