Core/Battleground: Fixed a problem that did not let Arenas queue if it was in queue of Random Battleground

Port From (https://github.com/TrinityCore/TrinityCore/commit/27572359563078edacf42e7b62cf0e6f2ad4b3b2)
This commit is contained in:
hondacrx
2021-09-27 10:53:37 -04:00
parent bf3edc2f55
commit 262943f571
+1 -1
View File
@@ -1765,7 +1765,7 @@ namespace Game.Groups
// don't let join if someone from the group is in bg queue random
bool isInRandomBgQueue = member.InBattlegroundQueueForBattlegroundQueueType(Global.BattlegroundMgr.BGQueueTypeId((ushort)BattlegroundTypeId.RB, BattlegroundQueueIdType.Battleground, false, 0))
|| member.InBattlegroundQueueForBattlegroundQueueType(Global.BattlegroundMgr.BGQueueTypeId((ushort)BattlegroundTypeId.RandomEpic, BattlegroundQueueIdType.Battleground, false, 0));
if (isInRandomBgQueue)
if (bgOrTemplate.GetTypeID() != BattlegroundTypeId.AA && isInRandomBgQueue)
return GroupJoinBattlegroundResult.InRandomBg;
// don't let join to bg queue random if someone from the group is already in bg queue
if ((bgOrTemplate.GetTypeID() == BattlegroundTypeId.RB || bgOrTemplate.GetTypeID() == BattlegroundTypeId.RandomEpic) && member.InBattlegroundQueue(true) && !isInRandomBgQueue)