Working on botgroup removal

This commit is contained in:
neckkola
2022-01-23 23:49:00 -04:00
parent 5a9c8c18c1
commit 19004730ad
4 changed files with 108 additions and 33 deletions
+4 -1
View File
@@ -74,7 +74,10 @@ void Bot::AI_Process_Raid()
// We also need a leash owner and follow mob (subset of primary AI criteria)
Client* leash_owner = nullptr;
if (r_group < 12 && !leash_owner) {
if (r_group < 12 && raid->IsGroupLeader(this->GetName())) {
leash_owner = raid->GetLeader();
}
else if (r_group < 12) {
leash_owner = raid->GetGroupLeader(r_group);
}
else {