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