From c27f41bd5dec73e2bb8de780b7c3f360d4567cfa Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 4 Aug 2016 17:30:04 +0200 Subject: [PATCH] fix nil color for target frame --- modules/target.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/target.lua b/modules/target.lua index fbd33fcd..cadc6d66 100644 --- a/modules/target.lua +++ b/modules/target.lua @@ -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)