Skip to content

Commit

Permalink
Small fix for Classic and Wrath.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Jan 12, 2023
1 parent af7ad56 commit cf60072
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions core/Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,21 @@ end
-- Expansion names
addon.EXPANSION_MAP = {
[_G.LE_EXPANSION_CLASSIC] = _G.EXPANSION_NAME0,
[_G.LE_EXPANSION_BURNING_CRUSADE] = _G.EXPANSION_NAME1,
[_G.LE_EXPANSION_WRATH_OF_THE_LICH_KING] = _G.EXPANSION_NAME2,
[_G.LE_EXPANSION_CATACLYSM] = _G.EXPANSION_NAME3,
[_G.LE_EXPANSION_MISTS_OF_PANDARIA] = _G.EXPANSION_NAME4,
[_G.LE_EXPANSION_WARLORDS_OF_DRAENOR] = _G.EXPANSION_NAME5,
[_G.LE_EXPANSION_LEGION] = _G.EXPANSION_NAME6,
[_G.LE_EXPANSION_BATTLE_FOR_AZEROTH] = _G.EXPANSION_NAME7,
[_G.LE_EXPANSION_SHADOWLANDS] = _G.EXPANSION_NAME8,
[_G.LE_EXPANSION_DRAGONFLIGHT] = _G.EXPANSION_NAME9,
[_G.LE_EXPANSION_BURNING_CRUSADE] = _G.EXPANSION_NAME1
}
if addon.isRetail or addon.isWrath then
addon.EXPANSION_MAP[_G.LE_EXPANSION_WRATH_OF_THE_LICH_KING] = _G.EXPANSION_NAME2
addon.EXPANSION_MAP[_G.LE_EXPANSION_CATACLYSM] = _G.EXPANSION_NAME3
addon.EXPANSION_MAP[_G.LE_EXPANSION_MISTS_OF_PANDARIA] = _G.EXPANSION_NAME4
addon.EXPANSION_MAP[_G.LE_EXPANSION_WARLORDS_OF_DRAENOR] = _G.EXPANSION_NAME5
addon.EXPANSION_MAP[_G.LE_EXPANSION_LEGION] = _G.EXPANSION_NAME6
addon.EXPANSION_MAP[_G.LE_EXPANSION_BATTLE_FOR_AZEROTH] = _G.EXPANSION_NAME7
addon.EXPANSION_MAP[_G.LE_EXPANSION_SHADOWLANDS] = _G.EXPANSION_NAME8
end

if addon.isRetail then
addon.EXPANSION_MAP[_G.LE_EXPANSION_DRAGONFLIGHT] = _G.EXPANSION_NAME9
end

-- Tradeskill subclassID -> subclassName
-- Note that this differs from what GetItemSubClassInfo returns (in comments); non-retail client returns aren't obsoleted.
Expand Down

0 comments on commit cf60072

Please sign in to comment.