Leave group instead of disband group

This commit is contained in:
Yunfan Li
2025-01-19 20:13:59 +08:00
parent bc33851189
commit 3a9fc170c5

View File

@@ -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)