-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGameVersions.lua
More file actions
executable file
·23 lines (17 loc) · 991 Bytes
/
GameVersions.lua
File metadata and controls
executable file
·23 lines (17 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---@class DisenchantBuddy
local DisenchantBuddy = select(2, ...)
--- Addon is running on Classic "Vanilla" client: Means Classic Era and its seasons like SoM
---@type boolean
DisenchantBuddy.IsClassic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
--- Addon is running on Classic TBC client
DisenchantBuddy.IsTBC = WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC
--- Addon is running on Classic WotLK client
DisenchantBuddy.IsWotLK = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC
--- Addon is running on Classic Cata client
DisenchantBuddy.IsCata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC
--- Addon is running on Classic MoP client
---@type boolean
DisenchantBuddy.IsMoP = WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC
--- Addon is running on Classic "Vanilla" client and on Season of Discovery realm specifically
---@type boolean
DisenchantBuddy.IsSoD = DisenchantBuddy.IsClassic and C_Seasons.HasActiveSeason() and (C_Seasons.GetActiveSeason() == Enum.SeasonID.SeasonOfDiscovery)