fix(cpp): Now will grant spells on level 80 levelup

- Before that commit, .character level 80 didn't teach any spell
This commit is contained in:
Barbz
2020-04-11 21:24:28 +02:00
committed by GitHub
parent 222850c1c4
commit 63a914a4f9

View File

@@ -37,7 +37,7 @@ class LearnSpellsOnLevelUp : public PlayerScript
{ {
if (sConfigMgr->GetBoolDefault("LearnSpells.Enable", true)) if (sConfigMgr->GetBoolDefault("LearnSpells.Enable", true))
{ {
if (player->getLevel() < MaxLevel) if (player->getLevel() <= MaxLevel)
{ {
if (oldLevel < player->getLevel()) if (oldLevel < player->getLevel())
LearnSpellsForNewLevel(player, oldLevel); LearnSpellsForNewLevel(player, oldLevel);