From 7f04e704999a44a2c39f72a914834301ac30bc07 Mon Sep 17 00:00:00 2001 From: Matt Whittington Date: Mon, 4 Dec 2023 17:02:26 +1100 Subject: [PATCH] Fix for Season of Discovery custom max levels per phase (#998) * Fix for Season of Discovery custom max levels per phase _G.MAX_PLAYER_LEVEL is set to the max level for the phase after a /reloadui in game. When logging in initially it is 60 but after reloading or changing zones the change causes a LUA error every time the bags are opened. * Update Classic Era TOC version --- AdiBags_Vanilla.toc | 2 +- modules/ItemLevel.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AdiBags_Vanilla.toc b/AdiBags_Vanilla.toc index 162bcf80..5260a2d2 100644 --- a/AdiBags_Vanilla.toc +++ b/AdiBags_Vanilla.toc @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with AdiBags. If not, see . -## Interface: 11404 +## Interface: 11500 ## Title: AdiBags ## Notes: Adirelle's bag addon. diff --git a/modules/ItemLevel.lua b/modules/ItemLevel.lua index ec3698d5..d30fb590 100644 --- a/modules/ItemLevel.lua +++ b/modules/ItemLevel.lua @@ -350,6 +350,9 @@ do } else maxLevelRanges = { + [25] = { 66, 92 }, -- Classic Season of Disocvery Phase 1 + [40] = { 66, 92 }, -- Classic Season of Disocvery Phase 2 + [50] = { 66, 92 }, -- Classic Season of Disocvery Phase 3 [60] = { 66, 92 }, [70] = { 100, 164 }, [80] = { 187, 284 },