Fix: Updated to work with newer commits of AzerothCore

This commit is contained in:
Revision
2024-07-22 00:39:06 +02:00
parent fedb6084e2
commit 838bfe333d
48 changed files with 241 additions and 239 deletions

View File

@@ -54,7 +54,7 @@ void XpGainAction::GiveXP(uint32 xp, Unit* victim)
return;
}
uint32 level = bot->getLevel();
uint32 level = bot->GetLevel();
// XP to money conversion processed in Player::RewardQuest
if (level >= sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL))
@@ -80,7 +80,7 @@ void XpGainAction::GiveXP(uint32 xp, Unit* victim)
bot->GiveLevel(level + 1);
}
level = bot->getLevel();
level = bot->GetLevel();
nextLvlXP = bot->GetUInt32Value(PLAYER_NEXT_LEVEL_XP);
}