From f296f51df639ca2be5fd3ea55935c60dd21ad325 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 21 Mar 2020 15:24:08 +0100 Subject: [PATCH] tooltip: use target reaction color if available --- modules/tooltip.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/tooltip.lua b/modules/tooltip.lua index a0f7265d..ff166971 100644 --- a/modules/tooltip.lua +++ b/modules/tooltip.lua @@ -220,7 +220,11 @@ pfUI:RegisterModule("tooltip", "vanilla:tbc", function () GameTooltip:AddLine(target, color.r, color.g, color.b) elseif targetReaction then local color = UnitReactionColor[targetReaction] - GameTooltip:AddLine(target, color.r, color.g, color.b) + if color then + GameTooltip:AddLine(target, color.r, color.g, color.b) + else + GameTooltip:AddLine(target, .5, .5, .5) + end end end