Core/PacketIO: Fixed BattlefieldStatusHeader structure and QueueID values for other battleground types
Port From (https://github.com/TrinityCore/TrinityCore/commit/d435d5d5ba7040a0de16d5b97202b2e61fd03344)
This commit is contained in:
@@ -1803,7 +1803,11 @@ namespace Game.BattleGrounds
|
||||
|
||||
public ulong GetQueueId()
|
||||
{
|
||||
return (ulong)_battlegroundTemplate.Id | 0x1F10000000000000ul;
|
||||
BattlegroundQueueIdType type = BattlegroundQueueIdType.Battleground;
|
||||
if (IsArena())
|
||||
type = IsRated() ? BattlegroundQueueIdType.Arena : BattlegroundQueueIdType.ArenaSkirmish;
|
||||
|
||||
return (ulong)_battlegroundTemplate.Id | (ulong)type << 16 | 0x1F10000000000000;
|
||||
}
|
||||
|
||||
public BattlegroundTypeId GetTypeID(bool getRandom = false)
|
||||
|
||||
Reference in New Issue
Block a user