mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Leave group on login instead of disband group if group is invalid
This commit is contained in:
parent
265f969656
commit
c2a023afa2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user