From 037258fb1a0890054a77b79f7aaf0722bad430d9 Mon Sep 17 00:00:00 2001 From: EricksOliveira Date: Thu, 17 Oct 2024 21:19:00 -0300 Subject: [PATCH] Fix Bug Bot blocked in PT After leaving PT, the Bot was stuck in a Group, stopped and without receiving invites from other players. Ideally, use the LeaveGroupOnLogout.Enabled = 1 setting in Worldserver.conf so that after the player leaves the game, the Bots are not stuck in Raid. --- src/strategy/actions/LeaveGroupAction.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/strategy/actions/LeaveGroupAction.cpp b/src/strategy/actions/LeaveGroupAction.cpp index 39d0451d..b2594e0f 100644 --- a/src/strategy/actions/LeaveGroupAction.cpp +++ b/src/strategy/actions/LeaveGroupAction.cpp @@ -30,6 +30,8 @@ bool PartyCommandAction::Execute(Event event) Player* master = GetMaster(); if (master && member == master->GetName()) return Leave(bot); + + botAI->Reset(); return false; } @@ -62,6 +64,8 @@ bool UninviteAction::Execute(Event event) if (bot->GetGUID() == guid) return Leave(bot); } + + botAI->Reset(); return false; } @@ -160,6 +164,8 @@ bool LeaveFarAwayAction::isUseful() { return true; } + + botAI->Reset(); return false; }