mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update PlayerbotFactory.cpp
This commit is contained in:
@@ -2576,8 +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 || botcaptain->GetArenaTeamId(arenateam->GetType()))
|
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?
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user