mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 04:11:30 +00:00
Fix for clients not dropping group after camping bots
This commit is contained in:
parent
5e60fcdc0c
commit
377c569635
@ -7465,9 +7465,13 @@ void Bot::DoEnduranceUpkeep() {
|
|||||||
void Bot::Camp(bool databaseSave) {
|
void Bot::Camp(bool databaseSave) {
|
||||||
Sit();
|
Sit();
|
||||||
|
|
||||||
if(IsGrouped())
|
auto group = GetGroup();
|
||||||
|
if(group)
|
||||||
RemoveBotFromGroup(this, GetGroup());
|
RemoveBotFromGroup(this, GetGroup());
|
||||||
|
|
||||||
|
if (group->GroupCount() < 2)
|
||||||
|
group->DisbandGroup();
|
||||||
|
|
||||||
LeaveHealRotationMemberPool();
|
LeaveHealRotationMemberPool();
|
||||||
|
|
||||||
if(databaseSave)
|
if(databaseSave)
|
||||||
|
|||||||
@ -3952,6 +3952,9 @@ void Client::Handle_OP_Camp(const EQApplicationPacket *app)
|
|||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
// This block is necessary to clean up any bot objects owned by a Client
|
// This block is necessary to clean up any bot objects owned by a Client
|
||||||
Bot::BotOrderCampAll(this);
|
Bot::BotOrderCampAll(this);
|
||||||
|
auto group = GetGroup();
|
||||||
|
if (group && group->GroupCount() < 2)
|
||||||
|
group->DisbandGroup();
|
||||||
#endif
|
#endif
|
||||||
if (IsLFP())
|
if (IsLFP())
|
||||||
worldserver.StopLFP(CharacterID());
|
worldserver.StopLFP(CharacterID());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user