Skip to content

Commit

Permalink
fix GetLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldelago authored Jul 23, 2024
1 parent 0f83b9c commit 28fed8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod_learnspells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LearnSpellsOnLevelUp : public PlayerScript
{
if (sConfigMgr->GetOption<bool>("LearnSpells.Enable", true))
{
if (player->getLevel() <= sConfigMgr->GetOption<uint8>("LearnSpells.MaxLevel", 80) && oldLevel < player->getLevel())
if (player->GetLevel() <= sConfigMgr->GetOption<uint8>("LearnSpells.MaxLevel", 80) && oldLevel < player->GetLevel())
LearnSpellsForNewLevel(player, oldLevel);
}
}
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit 28fed8f

Please sign in to comment.