From 19f78e4074476ea21e0bd81ec9f24f257f18b987 Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Mon, 18 Sep 2017 01:25:42 +0300 Subject: [PATCH] Added solo test variable --- ElvUI_SLE/modules/nameplates.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/nameplates.lua b/ElvUI_SLE/modules/nameplates.lua index 49281be..046235c 100644 --- a/ElvUI_SLE/modules/nameplates.lua +++ b/ElvUI_SLE/modules/nameplates.lua @@ -77,7 +77,7 @@ hooksecurefunc(NP, 'Update_ThreatList', function(self, myPlate) end) function N:UpdateCount(event,unit,force) - if (not T.find(unit, "raid") and not T.find(unit, "party") and not (unit == "player" and force) ) or T.find(unit, "pet") then return end + if (not T.find(unit, "raid") and not T.find(unit, "party") and not (unit == "player" and force) and not N.TestSoloTarget) or T.find(unit, "pet") then return end if force and (T.IsInRaid() or T.IsInGroup()) then N:UpdateRoster() end local target for _, frame in T.pairs(GetNamePlates()) do @@ -101,6 +101,15 @@ function N:UpdateCount(event,unit,force) end end end + if N.TestSoloTarget then + plate.guid = T.UnitGUID(plate.unit) + if plate.guid and T.UnitExists("target") then + if T.UnitGUID("target") == plate.guid then plate.targetCount = plate.targetCount + 1 end + if not (plate.targetCount == 0) then + plate.targetcount:SetText(T.format('[%d]', plate.targetCount)) + end + end + end end end end -- 1.7.9.5