mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
nameplates: reduce target scanning
This commit is contained in:
@@ -213,7 +213,7 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
local name = name:GetText()
|
||||
|
||||
-- target
|
||||
if pfUI.nameplates.targets[name] == nil and UnitName("target") == nil then
|
||||
if not pfUI_playerDB[name] and pfUI.nameplates.targets[name] == nil and UnitName("target") == nil then
|
||||
TargetByName(name, true)
|
||||
if UnitIsPlayer("target") then
|
||||
local _, class = UnitClass("target")
|
||||
@@ -228,7 +228,7 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
end
|
||||
|
||||
-- mouseover
|
||||
if pfUI.nameplates.targets[name] == nil and UnitName("mouseover") == name then
|
||||
if not pfUI_playerDB[name] and pfUI.nameplates.targets[name] == nil and UnitName("mouseover") == name then
|
||||
if UnitIsPlayer("mouseover") then
|
||||
local _, class = UnitClass("mouseover")
|
||||
pfUI_playerDB[name] = {}
|
||||
|
||||
Reference in New Issue
Block a user