mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- updated all UnitPower* code to use the SPELL_POWER_* constants instead of hardcoding numbers...mostly just a readability change
This commit is contained in:
@ -68,19 +68,19 @@ function FocusMana.prototype:Update(unit)
|
||||
else
|
||||
self:Show(true)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
local manaType = UnitPowerType(self.unit)
|
||||
|
||||
local color = "FocusMana"
|
||||
if (self.moduleSettings.scaleManaColor) then
|
||||
color = "ScaledManaColor"
|
||||
end
|
||||
if (manaType == 1) then
|
||||
if (manaType == SPELL_POWER_RAGE) then
|
||||
color = "FocusRage"
|
||||
elseif (manaType == 2) then
|
||||
elseif (manaType == SPELL_POWER_FOCUS) then
|
||||
color = "FocusFocus"
|
||||
elseif (manaType == 3) then
|
||||
elseif (manaType == SPELL_POWER_ENERGY) then
|
||||
color = "FocusEnergy"
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user