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

@@ -144,14 +144,14 @@ bool LeaveFarAwayAction::isUseful()
if (bot->GetGuildId() == master->GetGuildId())
{
if (bot->getLevel() > master->getLevel() + 5)
if (bot->GetLevel() > master->GetLevel() + 5)
{
if (AI_VALUE(bool, "should get money"))
return false;
}
}
if (abs(int32(master->getLevel() - bot->getLevel())) > 4)
if (abs(int32(master->GetLevel() - bot->GetLevel())) > 4)
return true;
if (bot->GetMapId() != master->GetMapId() || bot->GetDistance2d(master) >= 2 * sPlayerbotAIConfig->rpgDistance) {