Fix for clients not dropping group after camping bots

This commit is contained in:
Uleat
2019-08-24 21:54:46 -04:00
parent 5e60fcdc0c
commit 377c569635
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -7465,9 +7465,13 @@ void Bot::DoEnduranceUpkeep() {
void Bot::Camp(bool databaseSave) {
Sit();
if(IsGrouped())
auto group = GetGroup();
if(group)
RemoveBotFromGroup(this, GetGroup());
if (group->GroupCount() < 2)
group->DisbandGroup();
LeaveHealRotationMemberPool();
if(databaseSave)