mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
.
This commit is contained in:
parent
5bc71a4542
commit
08be970538
@ -2576,7 +2576,7 @@ void PlayerbotFactory::InitArenaTeam()
|
|||||||
ObjectGuid capt = arenateam->GetCaptain();
|
ObjectGuid capt = arenateam->GetCaptain();
|
||||||
Player* botcaptain = ObjectAccessor::FindPlayer(capt);
|
Player* botcaptain = ObjectAccessor::FindPlayer(capt);
|
||||||
|
|
||||||
if (sCharacterCache->GetCharacterArenaTeamIdByGuid(capt, arenateam->GetType()) != 0)
|
if (sCharacterCache->GetCharacterArenaTeamIdByGuid(capt, arenateam->GetType()) != 0 || botcaptain->GetArenaTeamId(arenateam->GetType()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
|
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user