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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2577,7 +2577,8 @@ 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?
{
arenateam->AddMember(bot->GetGUID());