mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Leave group on login instead of disband group if group is invalid
This commit is contained in:
@@ -484,10 +484,11 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
|
|||||||
|
|
||||||
if (!groupValid)
|
if (!groupValid)
|
||||||
{
|
{
|
||||||
WorldPacket p;
|
bot->RemoveFromGroup();
|
||||||
std::string const member = bot->GetName();
|
// WorldPacket p;
|
||||||
p << uint32(PARTY_OP_LEAVE) << member << uint32(0);
|
// std::string const member = bot->GetName();
|
||||||
bot->GetSession()->HandleGroupDisbandOpcode(p);
|
// p << uint32(PARTY_OP_LEAVE) << member << uint32(0);
|
||||||
|
// bot->GetSession()->HandleGroupDisbandOpcode(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user