mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +00:00
unitframes: use default color on empty class
This commit is contained in:
+3
-3
@@ -1417,9 +1417,9 @@ function pfUI.uf.GetColor(self, preset)
|
|||||||
|
|
||||||
elseif preset == "class" and config["classcolor"] == "1" then
|
elseif preset == "class" and config["classcolor"] == "1" then
|
||||||
local _, class = UnitClass(unitstr)
|
local _, class = UnitClass(unitstr)
|
||||||
r = RAID_CLASS_COLORS[class].r
|
if RAID_CLASS_COLORS[class] then
|
||||||
g = RAID_CLASS_COLORS[class].g
|
r, g, b = RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
|
||||||
b = RAID_CLASS_COLORS[class].b
|
end
|
||||||
|
|
||||||
elseif preset == "reaction" and config["classcolor"] == "1" then
|
elseif preset == "reaction" and config["classcolor"] == "1" then
|
||||||
r = UnitReactionColor[UnitReaction(unitstr, "player")].r
|
r = UnitReactionColor[UnitReaction(unitstr, "player")].r
|
||||||
|
|||||||
Reference in New Issue
Block a user