Skip to content

Commit 205a5d2

Browse files
committed
move this
1 parent 8ea6f2f commit 205a5d2

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

ElvUI/Core/General/Commands.lua

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ local BLIZZARD_DEPRECATED = {
8181
'Blizzard_DeprecatedItemScript',
8282
'Blizzard_DeprecatedPvpScript',
8383
'Blizzard_DeprecatedSoundScript',
84-
'Blizzard_DeprecatedSpellScript'
84+
'Blizzard_DeprecatedSpellScript',
8585
}
8686

8787
local BLIZZARD_ADDONS = {
@@ -133,13 +133,6 @@ local BLIZZARD_ADDONS = {
133133
'Blizzard_CUFProfiles',
134134
'Blizzard_DeathRecap',
135135
'Blizzard_DebugTools',
136-
'Blizzard_Deprecated',
137-
'Blizzard_DeprecatedCurrencyScript',
138-
'Blizzard_DeprecatedGuildScript',
139-
'Blizzard_DeprecatedItemScript',
140-
'Blizzard_DeprecatedPvpScript',
141-
'Blizzard_DeprecatedSoundScript',
142-
'Blizzard_DeprecatedSpellScript',
143136
'Blizzard_Dispatcher',
144137
'Blizzard_EncounterJournal',
145138
'Blizzard_EventTrace',
@@ -230,14 +223,24 @@ function E:DisableBlizzardDeprecated()
230223
end
231224
end
232225

233-
function E:EnableBlizzardAddOns()
234-
for _, addon in pairs(BLIZZARD_ADDONS) do
226+
do
227+
local function Enable(addon)
235228
local _, _, _, _, reason = GetAddOnInfo(addon)
236229
if reason == 'DISABLED' then
237230
EnableAddOn(addon)
238231
E:Print('The following addon was re-enabled:', addon)
239232
end
240233
end
234+
235+
function E:EnableBlizzardAddOns()
236+
for _, addon in pairs(BLIZZARD_ADDONS) do
237+
Enable(addon)
238+
end
239+
240+
for _, addon in pairs(BLIZZARD_DEPRECATED) do
241+
Enable(addon)
242+
end
243+
end
241244
end
242245

243246
function E:DBConvertProfile()

0 commit comments

Comments
 (0)