From 9ecdf5cdf74eee8de1139d339d9ef9f350d89acc Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 1 Sep 2015 08:35:38 +0400 Subject: [PATCH] more for auras --- ElvUI_SLE/locales/russian.lua | 1 + ElvUI_SLE/modules/auras.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index bc531b2..4a681fa 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -133,6 +133,7 @@ L["Hide Debuff Timer"] = "Спрятать таймеры дебаффов" L["This hides the time remaining for your debuffs."] = "Скрывает текст оставшегося времени действия около дебаффов" L["Mark Your Consolidated Buffs"] = "Отмечать ваши объединенные эффекты" L["Create a mark bar on a consolidated buffs bar's icons for buffs your class can provide."] = "Создавать метку в полосе объединенных эффектов на иконках, бафф которых может предоставить ваш класс." +L["You are in combat, Consolidated Buffs Bars will be updated upon leaving it"] = "Вы в бою. Полоса объединенных эффектов будет обновлена по его окончанию." --Autoreleas-- L["PvP Auto Release"] = "Автоматический выход из тела" diff --git a/ElvUI_SLE/modules/auras.lua b/ElvUI_SLE/modules/auras.lua index cf5b052..14ca2dc 100644 --- a/ElvUI_SLE/modules/auras.lua +++ b/ElvUI_SLE/modules/auras.lua @@ -232,7 +232,7 @@ function AT:BuildCasts(event, unit) return end if event == "PLAYER_REGEN_ENABLED" then f:UnregisterEvent(event) end - if E.myclass == "MONK" then + if E.myclass == "MONK" and GetSpecialization() then twipe(AT.Spells["MONK"]) if GetSpecialization() == 2 then AT.Spells["MONK"][1] = GetSpell(115921) @@ -291,7 +291,7 @@ function AT:Initialize() self:RegisterEvent("UNIT_AURA", "UpdateAuraStandings") self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED", "BuildCasts") self:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED", "BuildCasts") - -- self:RegisterEvent("UNIT_LEVEL", "BuildCasts") + self:RegisterEvent("UNIT_LEVEL", "BuildCasts") self:RegisterEvent("PLAYER_REGEN_DISABLED", "UpdateAuraStandings") C_Timer.After(5, AT.BuildCasts) -- 1.7.9.5