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

@@ -31,15 +31,15 @@ bool HireAction::Execute(Event event)
return false;
}
if (bot->getLevel() > master->getLevel())
if (bot->GetLevel() > master->GetLevel())
{
botAI->TellMaster("You cannot hire higher level characters than you");
return false;
}
uint32 discount = sRandomPlayerbotMgr->GetTradeDiscount(bot, master);
uint32 m = 1 + (bot->getLevel() / 10);
uint32 moneyReq = m * 5000 * bot->getLevel();
uint32 m = 1 + (bot->GetLevel() / 10);
uint32 moneyReq = m * 5000 * bot->GetLevel();
if (discount < moneyReq)
{
std::ostringstream out;