mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
nameplates: only read level if it is shown
This commit is contained in:
@@ -343,7 +343,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
local hp = plate.parent.healthbar:GetValue()
|
||||
local hpmin, hpmax = plate.parent.healthbar:GetMinMaxValues()
|
||||
local name = plate.parent.name:GetText()
|
||||
local level = plate.parent.level:GetObjectType() == "FontString" and tonumber(plate.parent.level:GetText()) or "??"
|
||||
local level = plate.parent.level:IsShown() and plate.parent.level:GetObjectType() == "FontString" and tonumber(plate.parent.level:GetText()) or "??"
|
||||
local class, _, elite, player = GetUnitData(name, true)
|
||||
local target = plate.cache.istarget
|
||||
local red, green, blue = plate.parent.healthbar:GetStatusBarColor()
|
||||
|
||||
Reference in New Issue
Block a user