Leave group on login instead of disband group if group is invalid

This commit is contained in:
Yunfan Li
2025-01-19 13:14:05 +08:00
parent 265f969656
commit c2a023afa2

View File

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