From 4eadecdd7c7c23edf37cf051170f449a007a1461 Mon Sep 17 00:00:00 2001 From: celguar Date: Fri, 26 Jan 2024 02:22:39 +0300 Subject: [PATCH] Reset strategies after setting master on invite accept --- playerbot/strategy/actions/AcceptInvitationAction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playerbot/strategy/actions/AcceptInvitationAction.h b/playerbot/strategy/actions/AcceptInvitationAction.h index 75768d811..dff8d1c53 100644 --- a/playerbot/strategy/actions/AcceptInvitationAction.h +++ b/playerbot/strategy/actions/AcceptInvitationAction.h @@ -40,13 +40,13 @@ namespace ai if (!bot->GetGroup() || !bot->GetGroup()->IsMember(inviter->GetObjectGuid())) return false; - ai->ResetStrategies(); - if (sRandomPlayerbotMgr.IsFreeBot(bot)) { ai->SetMaster(inviter); ai->ChangeStrategy("+follow", BotState::BOT_STATE_NON_COMBAT); } + + ai->ResetStrategies(); ai->ChangeStrategy("-lfg,-bg", BotState::BOT_STATE_NON_COMBAT); ai->Reset();