mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Leave group instead of disband group
This commit is contained in:
parent
bc33851189
commit
3a9fc170c5
@ -84,9 +84,7 @@ bool LeaveGroupAction::Leave(Player* player)
|
|||||||
bool shouldStay = randomBot && bot->GetGroup() && player == bot;
|
bool shouldStay = randomBot && bot->GetGroup() && player == bot;
|
||||||
if (!shouldStay)
|
if (!shouldStay)
|
||||||
{
|
{
|
||||||
WorldPacket p;
|
bot->RemoveFromGroup();
|
||||||
p << uint32(PARTY_OP_LEAVE) << bot->GetName() << uint32(0);
|
|
||||||
bot->GetSession()->HandleGroupDisbandOpcode(p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (randomBot)
|
if (randomBot)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user