From 667dfc226de7cd3b9cc8da603cea37c17c92a3f7 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 3 Nov 2024 11:07:36 +0100 Subject: [PATCH] nameplates: use superwow unit guid as unitstr --- modules/nameplates.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 6290b45b..b90f9e2c 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -521,6 +521,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () local unittype = GetUnitType(red, green, blue) or "ENEMY_NPC" local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size + -- use superwow unit guid as unitstr if possible + if superwow_active and not unitstr then + unitstr = plate.parent:GetName(1) + end + -- ignore players with npc names if plate level is lower than player level if ulevel and ulevel > (level == "??" and -1 or level) then player = nil end