From 63a914a4f951f2586229557679822f5f4b2c2114 Mon Sep 17 00:00:00 2001 From: Barbz Date: Sat, 11 Apr 2020 21:24:28 +0200 Subject: [PATCH] fix(cpp): Now will grant spells on level 80 levelup - Before that commit, .character level 80 didn't teach any spell --- src/mod_learnspells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_learnspells.cpp b/src/mod_learnspells.cpp index 583a51a..f14251a 100644 --- a/src/mod_learnspells.cpp +++ b/src/mod_learnspells.cpp @@ -37,7 +37,7 @@ class LearnSpellsOnLevelUp : public PlayerScript { if (sConfigMgr->GetBoolDefault("LearnSpells.Enable", true)) { - if (player->getLevel() < MaxLevel) + if (player->getLevel() <= MaxLevel) { if (oldLevel < player->getLevel()) LearnSpellsForNewLevel(player, oldLevel);