From 25f17962699e55aab1cf2e0d7c0d550a05111e54 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 22 Apr 2015 13:10:35 +0400 Subject: [PATCH] Trying to prevent "Script ran too long" error. Cause combat --- ElvUI_SLE/modules/auras.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElvUI_SLE/modules/auras.lua b/ElvUI_SLE/modules/auras.lua index 4996872..f50339a 100644 --- a/ElvUI_SLE/modules/auras.lua +++ b/ElvUI_SLE/modules/auras.lua @@ -181,6 +181,12 @@ end function AT:UpdateAuraStandings(event, unit) if unit ~= "player" 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 for i = 1, NUM_LE_RAID_BUFF_TYPES do local button = _G["ElvUIConsolidatedBuff"..i] for s = 1, #AT.Buffs[i] do @@ -204,6 +210,7 @@ function AT:Initialize() self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED", "BuildCasts") self:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED", "BuildCasts") self:RegisterEvent("UNIT_LEVEL", "BuildCasts") + self:RegisterEvent("PLAYER_REGEN_DISABLED", "UpdateAuraStandings") AT:BuildCasts() end \ No newline at end of file -- 1.7.9.5