feat(Core/Arena): support cross-faction teams (#6448)

This commit is contained in:
Kargatum 2021-06-26 20:37:33 +07:00 committed by GitHub
parent 642251a95c
commit b2a0714205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1864,7 +1864,7 @@ GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const*
return ERR_BATTLEGROUND_JOIN_FAILED;
// don't allow cross-faction groups to join queue
if (member->GetTeamId() != teamId)
if (member->GetTeamId() != teamId && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP))
return ERR_BATTLEGROUND_JOIN_TIMED_OUT;
// don't let join rated matches if the arena team id doesn't match