Use UnitClassBase for class detection

This commit is contained in:
Brues
2026-07-30 01:26:29 -05:00
parent 838f7f5d25
commit 6d1bfe805e
16 changed files with 22 additions and 24 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ end
-- unit [string] the unitstring
-- return: [table] string, r, g, b
function pfUI.api.GetUnitColor(unitstr)
local _, class = UnitClass(unitstr)
local class = UnitClassBase(unitstr)
local classColor = PFUI_CLASS_COLORS[class]
return classColor:GenerateHexColorMarkup(), classColor:GetRGB()
end