mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 01:50:48 +00:00
fix nil color for target frame
This commit is contained in:
@@ -103,6 +103,8 @@ pfUI:RegisterModule("target", function ()
|
|||||||
else
|
else
|
||||||
color = UnitReactionColor[UnitReaction("target", "player")]
|
color = UnitReactionColor[UnitReaction("target", "player")]
|
||||||
end
|
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
|
local r, g, b = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
|
||||||
|
|
||||||
pfUI.uf.target.hp.bar:SetMinMaxValues(0, hpmax)
|
pfUI.uf.target.hp.bar:SetMinMaxValues(0, hpmax)
|
||||||
|
|||||||
Reference in New Issue
Block a user