Skip to content

Commit 3edd30e

Browse files
Road-blockneotron
authored andcommitted
fix wrath client detection
1 parent f0d1878 commit 3edd30e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Config.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ end
396396
bc = { name = L["Burning Crusade"], type = "group", args = {}, order = 60 },
397397
vanilla = { name = L["Classic"], type = "group", args = {}, order = 70 },
398398
}
399+
elseif mod:IsWrathClassic() then
400+
expansions = {
401+
wotlk = { name = L["Wrath of the Lich King"], type = "group", args = {}, order = 50 },
402+
bc = { name = L["Burning Crusade"], type = "group", args = {}, order = 60 },
403+
vanilla = { name = L["Vanilla"], type = "group", args = {}, order = 70 },
404+
}
399405
else
400406
expansions = {
401407
bfa = { name = L["Battle for Azeroth"], type = "group", args = {}, order = 10 },

MagicMarker.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ function mod:IsBurningCrusadeClassic()
221221
return (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC)
222222
end
223223

224+
function mod:IsWrathClassic()
225+
return (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)
226+
end
227+
224228
function mod:OnInitialize()
225229
-- Set up the config database
226230
self.db = LibStub("AceDB-3.0"):New("MagicMarkerConfigDB", defaultConfigDB, "Default")

0 commit comments

Comments
 (0)