mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-25 17:16:02 +00:00
fix nil color for target frame
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user