mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 06:00:00 +00:00
GetUnitData -> GetUnitInfo
avoid clash
This commit is contained in:
@@ -1023,7 +1023,7 @@ end
|
||||
local hpmin, hpmax = plate.original.healthbar:GetMinMaxValues()
|
||||
local name = plate.original.name:GetText()
|
||||
local level = plate.original.level:IsShown() and plate.original.level:GetObjectType() == "FontString" and tonumber(plate.original.level:GetText()) or "??"
|
||||
local class, ulevel, elite, player, guild = GetUnitData(name, true)
|
||||
local class, ulevel, elite, player, guild = GetUnitInfo(name, true)
|
||||
|
||||
-- Use database level ONLY if current level is ?? (fixes ?? after reload, but doesn't override visible levels)
|
||||
local levelFromDB = false
|
||||
@@ -1545,7 +1545,7 @@ end
|
||||
end
|
||||
|
||||
-- trigger update when unit was found
|
||||
if nameplate.wait_for_scan and GetUnitData(name, true) then
|
||||
if nameplate.wait_for_scan and GetUnitInfo(name, true) then
|
||||
nameplate.wait_for_scan = nil
|
||||
update = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user