Change aggro string to properly be colored red
James Whitehead II [01-06-07 - 17:00]
Change aggro string to properly be colored red
Altered UNITHEALTH_MAX and UNIT_MANA_MAX to not reset the value of the statusbar, which was causing dead units to show 0 health
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index 44cddc6..c80f958 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -202,7 +202,7 @@ function PerfectRaid:UNIT_HEALTH(event, unit)
--TODO: Seperate this out properly into the logical module
if aggro[unit] and aggro[unit] >= 15 then
if deficit == "" then
- deficit = L["Aggro"]
+ deficit = "|cFFFF1111"..L["Aggro"]
else
deficit = "|cFFFF1111"..deficit.."|r"
end
@@ -284,7 +284,6 @@ function PerfectRaid:UNIT_MAXHEALTH(event, unit)
local health = UnitHealth(unit)
for frame in pairs(frames[unit]) do
frame.healthbar:SetMinMaxValues(0, max)
- frame.healthbar:SetValue(health)
end
end
@@ -294,7 +293,6 @@ function PerfectRaid:UNIT_MAXMANA(event, unit)
local mana = UnitMana(unit)
for frame in pairs(frames[unit]) do
frame.manabar:SetMinMaxValues(0, max)
- frame.manabar:SetValue(mana)
end
end