From 6408acb50faeca238ebdc311a4a79d90dc11a269 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 20 May 2020 17:33:24 +0200 Subject: [PATCH] nameplates: default to enemy npc unittype --- modules/nameplates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 62981d1d..a1d324b4 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -393,7 +393,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () local mouseover = UnitExists("mouseover") and plate.original.glow:IsShown() or nil local unitstr = target and "target" or mouseover and "mouseover" or nil local red, green, blue = plate.original.healthbar:GetStatusBarColor() - local unittype = GetUnitType(red, green, blue) + local unittype = GetUnitType(red, green, blue) or "ENEMY_NPC" if player and unittype == "ENEMY_NPC" then unittype = "ENEMY_PLAYER" end elite = plate.original.levelicon:IsShown() and not player and "boss" or elite if not class then plate.wait_for_scan = true end