From 3841408bc4ea674aecc031201bc2f7747d6f37e1 Mon Sep 17 00:00:00 2001 From: Mike L Date: Sat, 7 Dec 2024 15:27:02 -0800 Subject: [PATCH] Fix difficultycolor for units with a level of -1. --- ElvUI/Core/General/Tags.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElvUI/Core/General/Tags.lua b/ElvUI/Core/General/Tags.lua index baf543210a..c2597b8728 100644 --- a/ElvUI/Core/General/Tags.lua +++ b/ElvUI/Core/General/Tags.lua @@ -574,7 +574,8 @@ E:AddTag('difficultycolor', 'UNIT_LEVEL PLAYER_LEVEL_UP', function(unit) color = QuestDifficultyColors.difficult end else - color = GetCreatureDifficultyColor(UnitEffectiveLevel(unit)) + local level = UnitEffectiveLevel(unit) + color = GetCreatureDifficultyColor((level > 0) and level or 999) end return Hex(color.r, color.g, color.b)