Open up StatusColour.lua using some kind of text editor and replace the content with:
Code:
local UnitIsPlayer, UnitIsConnected, UnitClass, RAID_CLASS_COLORS =
UnitIsPlayer, UnitIsConnected, UnitClass, RAID_CLASS_COLORS
local _, class, colour
local function hook(statusbar, unit)
if (unit == "player" or unit == "target") and UnitIsPlayer(unit) and UnitIsConnected and unit == statusbar.unit and UnitClass(unit) then
_, class = UnitClass(unit)
colour = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
statusbar:SetStatusBarColor(colour.r, colour.g, colour.b)
end
end
hooksecurefunc("UnitFrameHealthBar_Update", hook)
hooksecurefunc("HealthBar_OnValueChanged", function(self)
hook(self, self.unit)
end)