Skip to content

Commit

Permalink
Update Wrath project id checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Sep 2, 2022
1 parent 3b665c2 commit e239b68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ read_globals = {
"WOW_PROJECT_MAINLINE",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_WRATH_CLASSIC",

-- Classic-only
"KeyRingButton",
Expand Down
2 changes: 1 addition & 1 deletion ActionBars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local BT4ActionBars = Bartender4:NewModule("ActionBars", "AceEvent-3.0")
local select, ipairs, pairs, tostring, tonumber, min, setmetatable = select, ipairs, pairs, tostring, tonumber, min, setmetatable

local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC) and GetClassicExpansionLevel() == 2
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)

-- GLOBALS: UnitClass, InCombatLockdown, GetBindingKey, ClearOverrideBindings, SetOverrideBindingClick

Expand Down
2 changes: 1 addition & 1 deletion StateBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local table_insert, table_concat, fmt = table.insert, table.concat, string.forma

local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
local WoWBC = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC)
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC) and GetClassicExpansionLevel() == 2
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)

local StateBar = setmetatable({}, {__index = ButtonBar})
local StateBar_MT = {__index = StateBar}
Expand Down

0 comments on commit e239b68

Please sign in to comment.