libunitscan: cache levels only, classes come from C_PlayerCache

This commit is contained in:
Brues
2026-11-03 01:17:04 -06:00
parent df7c13651b
commit ee9bd9e31a
4 changed files with 55 additions and 88 deletions
+1 -2
View File
@@ -492,8 +492,7 @@ pfUI:RegisterModule("nameplates", function ()
local elite = UnitClassification(unit)
if level <= 0 then
if plate.player then
local _, dblevel = GetUnitInfo(plate.rawname)
if dblevel and dblevel > 0 then level = dblevel end
level = GetPlayerLevel(plate.rawname) or level
else
-- UnitLevel answers -1 exactly where the engine shows the skull: a
-- world boss, or a hostile ten or more levels above the player