mirror of
https://github.com/azerothcore/mod-learn-spells.git
synced 2026-01-13 00:58:37 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user