class color cleanup

This commit is contained in:
Brues
2026-05-23 02:56:00 -05:00
parent 90fdd8cfc3
commit 1d27f7bed3
10 changed files with 40 additions and 85 deletions
+2 -3
View File
@@ -34,9 +34,8 @@ pfUI:RegisterModule("mapcolors", function ()
local function GetTextureColor(frame)
if UnitExists(frame.unit) then
local _, class = UnitClass(frame.unit)
local color = RAID_CLASS_COLORS[class]
return color.r, color.g, color.b
local _, r, g, b = GetUnitColor(frame.unit)
return r, g, b
else
return .5, 1, .5
end