mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
nameplates: fix boss level comparison with number
This commit is contained in:
@@ -481,7 +481,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
local unittype = GetUnitType(red, green, blue) or "ENEMY_NPC"
|
||||
|
||||
-- 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
|
||||
if ulevel and ulevel > (level == "??" and -1 or level) then player = nil end
|
||||
|
||||
-- cache name and reset unittype on change
|
||||
if plate.cache.name ~= name then
|
||||
|
||||
Reference in New Issue
Block a user