unitframes: use default color on empty class

This commit is contained in:
shagu
2017-09-20 23:20:25 +02:00
parent 924b58a92d
commit d290ddd26d
+3 -3
View File
@@ -1417,9 +1417,9 @@ function pfUI.uf.GetColor(self, preset)
elseif preset == "class" and config["classcolor"] == "1" then
local _, class = UnitClass(unitstr)
r = RAID_CLASS_COLORS[class].r
g = RAID_CLASS_COLORS[class].g
b = RAID_CLASS_COLORS[class].b
if RAID_CLASS_COLORS[class] then
r, g, b = RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
end
elseif preset == "reaction" and config["classcolor"] == "1" then
r = UnitReactionColor[UnitReaction(unitstr, "player")].r