mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
Use UnitClassBase for class detection
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user