From 9e47abf3dbb0f9993b9e6ee7d3cf591f95488fb0 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 22 Apr 2015 13:21:52 +0400 Subject: [PATCH] Apparently I've fucked it up --- ElvUI_SLE/modules/auras.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/auras.lua b/ElvUI_SLE/modules/auras.lua index f50339a..4fd06b2 100644 --- a/ElvUI_SLE/modules/auras.lua +++ b/ElvUI_SLE/modules/auras.lua @@ -176,17 +176,18 @@ function AT:BuildCasts(event, unit) button:SetAttribute("spell1", name) end end - AT:UpdateAuraStandings(nil, unit) + AT:UpdateAuraStandings(nil, "player") end function AT:UpdateAuraStandings(event, unit) - if unit ~= "player" then return end + if unit ~= "player" and event ~= "PLAYER_REGEN_ENABLED" then return end if event == "PLAYER_REGEN_DISABLED" then self:RegisterEvent("PLAYER_REGEN_ENABLED", "UpdateAuraStandings") return elseif event == "PLAYER_REGEN_ENABLED" then self:UnregisterEvent(event) end + if InCombatLockdown() then return end for i = 1, NUM_LE_RAID_BUFF_TYPES do local button = _G["ElvUIConsolidatedBuff"..i] for s = 1, #AT.Buffs[i] do -- 1.7.9.5