From fe711731bedc153792897fabca22f6e32c62e984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Tue, 21 Mar 2023 10:52:53 -0600 Subject: [PATCH] Less often guild group invites --- src/strategy/actions/InviteToGroupAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/actions/InviteToGroupAction.cpp b/src/strategy/actions/InviteToGroupAction.cpp index 4aef69b4..0b7b5e8a 100644 --- a/src/strategy/actions/InviteToGroupAction.cpp +++ b/src/strategy/actions/InviteToGroupAction.cpp @@ -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);