Update PlayerbotFactory.cpp

This commit is contained in:
Bogir[rus]
2022-04-09 15:07:43 +05:00
committed by GitHub
parent ba8f6fd119
commit eae5011e48

View File

@@ -2577,6 +2577,7 @@ void PlayerbotFactory::InitArenaTeam()
Player* botcaptain = ObjectAccessor::FindPlayer(capt);
if ((bot && bot->GetArenaTeamId(arenateam->GetSlot())) || sCharacterCache->GetCharacterArenaTeamIdByGuid(bot->GetGUID(), arenateam->GetSlot()) != 0)
return;
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
{