From 3a9fc170c5470bfbff9a4d40acbbd5171d361488 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 19 Jan 2025 20:13:59 +0800 Subject: [PATCH] Leave group instead of disband group --- src/strategy/actions/LeaveGroupAction.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/strategy/actions/LeaveGroupAction.cpp b/src/strategy/actions/LeaveGroupAction.cpp index b2594e0f..58602805 100644 --- a/src/strategy/actions/LeaveGroupAction.cpp +++ b/src/strategy/actions/LeaveGroupAction.cpp @@ -84,9 +84,7 @@ bool LeaveGroupAction::Leave(Player* player) bool shouldStay = randomBot && bot->GetGroup() && player == bot; if (!shouldStay) { - WorldPacket p; - p << uint32(PARTY_OP_LEAVE) << bot->GetName() << uint32(0); - bot->GetSession()->HandleGroupDisbandOpcode(p); + bot->RemoveFromGroup(); } if (randomBot)