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)
|
||||
{
|
||||
WorldPacket p;
|
||||
std::string const member = bot->GetName();
|
||||
p << uint32(PARTY_OP_LEAVE) << member << uint32(0);
|
||||
bot->GetSession()->HandleGroupDisbandOpcode(p);
|
||||
bot->RemoveFromGroup();
|
||||
// WorldPacket p;
|
||||
// std::string const member = bot->GetName();
|
||||
// p << uint32(PARTY_OP_LEAVE) << member << uint32(0);
|
||||
// bot->GetSession()->HandleGroupDisbandOpcode(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user