You should post an actual link to the addon page instead of a direct link to a ZIP file:
http://www.wowinterface.com/download...lthColors.html
Not tested at all, but this will probably work. Change the contents of the TOC file to this:
Code:
## Interface: 60000
## Title: HealthColors
## Notes: Multi-color the health bar
## Author: Chris & Matthew Brunner, stripped down from a mod by Jerek Dai
HealthColors.lua
Change the contents of the Lua file to this:
Code:
local function OnMinMaxChanged(bar, minValue, maxValue)
bar.maxValue = maxValue
end
local function SetValue(bar, value)
bar:real_SetValue(value)
local percent = value / bar.maxValue
if percent > 0.5 then
bar:SetStatusBarColor(2 * (1 - percent), 1, 0)
else
bar:SetStatusBarColor(1, 2 * percent, 0)
end
end
local function HandleBar(bar)
local _, maxValue = bar:GetMinMaxValues()
bar.maxValue = maxValue
bar.lockColor = true
bar:HookScript("OnMinMaxChanged", OnMinMaxChanged)
bar.real_SetValue = bar.SetValue
bar.SetValue = SetValue
end
HandleBar(PlayerFrameHealthBar)
HandleBar(TargetFrameHealthBar)
And delete the XML file, as it's not needed.