mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-03 19:03:49 +00:00
check if player already is member of any Arena-tream
This commit is contained in:
@@ -2576,6 +2576,9 @@ 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)
|
||||||
|
return;
|
||||||
|
|
||||||
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
|
if (botcaptain && botcaptain->GetTeamId() == bot->GetTeamId()) //need?
|
||||||
{
|
{
|
||||||
arenateam->AddMember(bot->GetGUID());
|
arenateam->AddMember(bot->GetGUID());
|
||||||
|
|||||||
Reference in New Issue
Block a user