im looking for a script that changes the health bars of the default blizzard arena frames to class colored ones. They are currently shown in all green.
I want to display these green health bars in class color
I found something like this:
function()
local _, class = UnitClass("player")
local colors = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class or "PRIEST"]
return colors.r, colors.g, colors.b
end