Less often guild group invites

This commit is contained in:
郑佩茹
2023-03-21 10:52:53 -06:00
parent 5c8100914e
commit fe711731be

View File

@@ -149,10 +149,10 @@ bool InviteGuildToGroupAction::Execute(Event event)
return false;
}
if (player->getLevel() + 2 < bot->getLevel())
if (abs(int32(player->getLevel() - bot->getLevel())) > 4)
continue;
if (player->getLevel() > bot->getLevel() + 20)
if (!botAI && sServerFacade->GetDistance2d(bot, player) > sPlayerbotAIConfig->sightDistance)
continue;
return Invite(player);