This commit is contained in:
Bogir[rus]
2022-04-08 19:22:56 +05:00
committed by GitHub
parent 5bc71a4542
commit 08be970538

View File

@@ -2576,7 +2576,7 @@ void PlayerbotFactory::InitArenaTeam()
ObjectGuid capt = arenateam->GetCaptain();
Player* botcaptain = ObjectAccessor::FindPlayer(capt);
if (sCharacterCache->GetCharacterArenaTeamIdByGuid(capt, arenateam->GetType()) != 0)
if (sCharacterCache->GetCharacterArenaTeamIdByGuid(capt, arenateam->GetType()) != 0 || botcaptain->GetArenaTeamId(arenateam->GetType()))
return;
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?