From f87a2a18f3b04373fcc753780a7e89f3124eb4fd Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 24 Jul 2014 23:01:32 +0400 Subject: [PATCH] Localizing table for nameplates --- ElvUI_SLE/modules/nameplates.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/modules/nameplates.lua b/ElvUI_SLE/modules/nameplates.lua index 1b7d890..26a532b 100644 --- a/ElvUI_SLE/modules/nameplates.lua +++ b/ElvUI_SLE/modules/nameplates.lua @@ -12,7 +12,7 @@ function Hex(r, g, b) return format('|cFF%02x%02x%02x', r * 255, g * 255, b * 255) end -NP.GroupMembers = {} +local GroupMembers = {} hooksecurefunc(NP, 'CreatePlate', function(self, frame) local myPlate = self.CreatedPlates[frame] @@ -65,7 +65,7 @@ hooksecurefunc(NP, 'GetThreatReaction', function(self, frame) if frame.guid then local targetCount = 0 local target - for name, unitid in pairs(NP.GroupMembers) do + for name, unitid in pairs(GroupMembers) do target = ("%starget"):format(unitid) if UnitExists(target) and UnitGUID(target) == frame.guid then targetCount = targetCount + 1 @@ -82,12 +82,12 @@ end) local function AddToRoster(unitId) local unitName = UnitName(unitId) if unitName then - NP.GroupMembers[unitName] = unitId + GroupMembers[unitName] = unitId end end local function UpdateRoster() - twipe(NP.GroupMembers) + twipe(GroupMembers) local groupSize = IsInRaid() and GetNumGroupMembers() or IsInGroup() and GetNumSubgroupMembers() or 0 local groupType = IsInRaid() and "raid" or IsInGroup() and "party" or "solo" -- 1.7.9.5