fix nil color for target frame

This commit is contained in:
shagu
2016-08-04 17:30:04 +02:00
parent 69b4174440
commit c27f41bd5d
+2
View File
@@ -103,6 +103,8 @@ pfUI:RegisterModule("target", function ()
else
color = UnitReactionColor[UnitReaction("target", "player")]
end
if not color then color.r, color.g, color.b = 1, 1, 1 end
local r, g, b = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
pfUI.uf.target.hp.bar:SetMinMaxValues(0, hpmax)