From 97740b02c5725e84c1574a623d741dff825f3c41 Mon Sep 17 00:00:00 2001 From: Repooc Date: Sat, 9 Aug 2014 01:02:07 -0400 Subject: [PATCH] Remove local db and changed a function name --- ElvUI_SLE/core/toolkit.lua | 2 +- ElvUI_SLE/modules/loot.lua | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua index f9d5d71..fc3c412 100644 --- a/ElvUI_SLE/core/toolkit.lua +++ b/ElvUI_SLE/core/toolkit.lua @@ -56,7 +56,7 @@ local function UpdateAll() UF:Update_CombatIndicator() end LT:LootShow() - LT:WTF() + LT:Update() UB:UpdateAll() RM:Update() RF:Update() diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua index a4d615a..0628bae 100644 --- a/ElvUI_SLE/modules/loot.lua +++ b/ElvUI_SLE/modules/loot.lua @@ -1,7 +1,6 @@ local E, L, V, P, G, _ = unpack(ElvUI); local LT = E:GetModule('SLE_Loot') local M = E:GetModule('Misc') -local db local check = false local t = 0 @@ -187,7 +186,7 @@ local function LoadConfig(event, addon) LT:UnregisterEvent("ADDON_LOADED") end -function LT:WTF() +function LT:Update() MaxPlayerLevel = GetMaxPlayerLevel() PlayerLevel = UnitLevel('player') @@ -234,5 +233,5 @@ end function LT:Initialize() hooksecurefunc(M, 'START_LOOT_ROLL', function(self, event, id) HandleRoll(event, id) end) if not E.db.sle.loot.enable then return end - LT:WTF() + LT:Update() end \ No newline at end of file -- 1.7.9.5