From a30ffd222cb81b80fc125a14f8d692f4cc2f5714 Mon Sep 17 00:00:00 2001 From: Michael Tindal Date: Fri, 9 Sep 2016 22:32:28 -0700 Subject: [PATCH] UNIT_AURA is very greedy, so choose when to answer it. --- ElvUI_SLE/modules/equipmanager.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElvUI_SLE/modules/equipmanager.lua b/ElvUI_SLE/modules/equipmanager.lua index a351a1e..3a3e6c4 100644 --- a/ElvUI_SLE/modules/equipmanager.lua +++ b/ElvUI_SLE/modules/equipmanager.lua @@ -96,6 +96,13 @@ local function Equip(event) end local spec, equipSet = EM:GetData() + + local shouldHandleUnitAura = E.private.sle.equip.FishingRaft.enable and (EM:HasFishingRaftAura() and equipSet ~= E.private.sle.equip.FishingRaft.set) or (not EM:HasFishingRaftAura() and equipSet == E.private.sle.equip.FishingRaft.set); + + if (event == "UNIT_AURA" and not shouldHandleUnitAura) then + return + end + if spec ~= nil then --In case you don't have spec local isWrong, trueSet = EM:WrongSet(equipSet, SpecTable[spec], inCombat) if isWrong and not T.UnitInVehicle("player") then -- 1.7.9.5