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