From 28fed8fe44a0de7c743dfda5e71012c9fc23ec04 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Tue, 23 Jul 2024 08:01:44 -0400 Subject: [PATCH] fix GetLevel --- src/mod_learnspells.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_learnspells.cpp b/src/mod_learnspells.cpp index f1e9155..85101a5 100644 --- a/src/mod_learnspells.cpp +++ b/src/mod_learnspells.cpp @@ -29,7 +29,7 @@ class LearnSpellsOnLevelUp : public PlayerScript { if (sConfigMgr->GetOption("LearnSpells.Enable", true)) { - if (player->getLevel() <= sConfigMgr->GetOption("LearnSpells.MaxLevel", 80) && oldLevel < player->getLevel()) + if (player->GetLevel() <= sConfigMgr->GetOption("LearnSpells.MaxLevel", 80) && oldLevel < player->GetLevel()) LearnSpellsForNewLevel(player, oldLevel); } } @@ -402,7 +402,7 @@ class LearnSpellsOnLevelUp : public PlayerScript void LearnSpellsForNewLevel(Player* player, uint8 fromLevel) { - uint8 upToLevel = player->getLevel(); + uint8 upToLevel = player->GetLevel(); uint32 family = GetSpellFamily(player); for (int level = fromLevel; level <= upToLevel; level++)