From fd0ae1292d4fa69b7bb6f8b87a7f6aad04dbb166 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 9 Oct 2014 12:26:38 +0400 Subject: [PATCH] woops --- ElvUI_SLE/modules/loot.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua index e6e7f44..f341951 100644 --- a/ElvUI_SLE/modules/loot.lua +++ b/ElvUI_SLE/modules/loot.lua @@ -32,6 +32,25 @@ local function Check() return false end +local function ModifierCheck() + local heldModifier = E.db.sle.loot.announcer.override + local shiftDown = IsShiftKeyDown(); + local ctrlDown = IsControlKeyDown(); + local altDown = IsAltKeyDown(); + + if heldModifier == '3' and shiftDown then + return true + elseif heldModifier == '5' and ctrlDown then + return true + elseif heldModifier == '4' and altDown then + return true + elseif heldModifier == '2' then + return true + end + + return false +end + local function Merge() local p, k for i = 1, #loot do -- 1.7.9.5