Skip to content

Commit

Permalink
Fixing max level calculation for SoD
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnpsp committed Mar 12, 2024
1 parent f648fdb commit 963dc66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion KiwiFarm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 963dc66

Please sign in to comment.