From 706e0875c1a75ce32c10d70785380d008e3cc9dd Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 20 Aug 2014 07:39:39 +0400 Subject: [PATCH] loot --- ElvUI_SLE/modules/loot.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua index 9ed5977..4db41be 100644 --- a/ElvUI_SLE/modules/loot.lua +++ b/ElvUI_SLE/modules/loot.lua @@ -164,7 +164,7 @@ local function Announce(event) end local function HandleRoll(event, id) - if not E.db.sle.loot.enable or not E.db.sle.loot.autoroll.enable then return end + if not E.db.sle.loot.autoroll.enable then return end if not (E.db.sle.loot.autoroll.autogreed or E.db.sle.loot.autoroll.autode) then return end local _, name, _, quality, _, _, _, disenchant = GetLootRollItemInfo(id) @@ -301,11 +301,11 @@ end function LT:Initialize() if not E.db.sle.loot.enable then return end - + self:RegisterEvent("CONFIRM_DISENCHANT_ROLL", HandleRoll) --Used to debug --self:RegisterEvent('MODIFIER_STATE_CHANGED') - hooksecurefunc(M, 'START_LOOT_ROLL', function(self, event, id) HandleRoll(event, id) end) + --hooksecurefunc(M, 'START_LOOT_ROLL', function(self, event, id) HandleRoll(event, id) end) LT:LoadLoot() LT:Update() end \ No newline at end of file -- 1.7.9.5