Skip to content

Commit 84a8002

Browse files
committed
Fix remix detection incorrectly flagging non-remix characters
1 parent 313f8ff commit 84a8002

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/autoPurchaseGenericTalents.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ local SURGE_ENTRY_IDS = {
3232
};
3333
local LIMITS_UNBOUND_NODE_ID = 108700;
3434

35-
local IS_LEMIX = C_TimerunningUI.GetActiveTimerunningSeasonID() == 2;
35+
local LEMIX_SEASON_ID = 2;
36+
local IS_LEMIX;
3637

3738
local GetSpellLink = C_Spell.GetSpellLink;
3839

@@ -41,6 +42,8 @@ local Module = Main:NewModule('Skyriding Auto Purchaser', 'AceEvent-3.0');
4142
-- don't rename the module, the settings etc are stored there
4243

4344
function Module:OnInitialize()
45+
IS_LEMIX = PlayerGetTimerunningSeasonID() == LEMIX_SEASON_ID;
46+
4447
--- @type table<number, number> # [specID] = lemixConfigID
4548
self.lemixConfigIDBySpecID = {};
4649
--- @type table<number, boolean> # [configID] = true if currently purchasing

0 commit comments

Comments
 (0)