mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Leave group instead of disband group
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user