From 5699677bc834bf537c155b49df89323dc53c4a7f Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 7 Jan 2017 17:38:01 +0100 Subject: [PATCH] nameplates: reduce target scanning --- modules/nameplates.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index f96fee14..8d363501 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -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] = {}