mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 10:20:27 +00:00
Fix: Updated to work with newer commits of AzerothCore
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user