From 963dc6609c02fd9579ea25238d85ce15442021b1 Mon Sep 17 00:00:00 2001 From: michaelsp Date: Tue, 12 Mar 2024 21:15:24 +0100 Subject: [PATCH] Fixing max level calculation for SoD --- KiwiFarm.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/KiwiFarm.lua b/KiwiFarm.lua index 4e02d2e..e464dd4 100644 --- a/KiwiFarm.lua +++ b/KiwiFarm.lua @@ -40,7 +40,14 @@ local MAX_PLAYER_LEVEL_TABLE = { [8] = 60, -- ShadowLands [9] = 70, -- Dragonflight } -local isPlayerLeveling = UnitLevel('player') < (MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()] or 0) +local isPlayerLeveling +do + local isSoD = C_Seasons and C_Seasons.GetActiveSeason and C_Seasons.GetActiveSeason()==2 -- season of discovery + local level = UnitLevel('player') + local levelMax = (MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()] or 0) + local levelCap = isSoD and level<=40 and 40 + isPlayerLeveling = level < (levelCap or levelMax) +end -- default values local RESET_MAX = CLASSIC and 5 or 10