mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Update PlayerbotFactory.cpp
This commit is contained in:
parent
ba8f6fd119
commit
eae5011e48
@ -2577,6 +2577,7 @@ void PlayerbotFactory::InitArenaTeam()
|
|||||||
Player* botcaptain = ObjectAccessor::FindPlayer(capt);
|
Player* botcaptain = ObjectAccessor::FindPlayer(capt);
|
||||||
|
|
||||||
if ((bot && bot->GetArenaTeamId(arenateam->GetSlot())) || sCharacterCache->GetCharacterArenaTeamIdByGuid(bot->GetGUID(), arenateam->GetSlot()) != 0)
|
if ((bot && bot->GetArenaTeamId(arenateam->GetSlot())) || sCharacterCache->GetCharacterArenaTeamIdByGuid(bot->GetGUID(), arenateam->GetSlot()) != 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
|
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user