diff --git a/modules/mod-item-level-up/src/ItemLevelUp.cpp b/modules/mod-item-level-up/src/ItemLevelUp.cpp index e95c061d2..4797f4e2c 100644 --- a/modules/mod-item-level-up/src/ItemLevelUp.cpp +++ b/modules/mod-item-level-up/src/ItemLevelUp.cpp @@ -92,6 +92,9 @@ bool ItemLevelUpMgr::OnPlayerItemUse(Player* player, Item* item) if (newLevel == 1) newLevel = playerLevel + 1; + if (newLevel > _maxConfigLevel) + newLevel = _maxConfigLevel; + player->GiveLevel(newLevel); if (!_isSaveExpEnable) @@ -180,4 +183,4 @@ void ItemLevelUpMgr::SetMaxWeaponSkills(Player* player) player->SaveToDB(false, false); player->UpdateSkillsToMaxSkillsForLevel(); -} +} \ No newline at end of file