mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-04 01:47:01 +00:00
libunitscan: cache levels only, classes come from C_PlayerCache
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user