void HandlePVPLogData(PVPLogDataRequest packet) { Battleground bg = GetPlayer().GetBattleground(); if (!bg) { return; } // Prevent players from sending BuildPvpLogDataPacket in an arena except for when sent in Battleground.EndBattleground. if (bg.isArena()) { return; } PVPLogData pvpLogData; bg.BuildPvPLogDataPacket(out pvpLogData); SendPacket(pvpLogData); }
void HandlePVPLogData(PVPLogDataRequest packet) { Battleground bg = GetPlayer().GetBattleground(); if (!bg) { return; } // Prevent players from sending BuildPvpLogDataPacket in an arena except for when sent in Battleground.EndBattleground. if (bg.IsArena()) { return; } PVPMatchStatisticsMessage pvpMatchStatistics = new PVPMatchStatisticsMessage(); bg.BuildPvPLogDataPacket(out pvpMatchStatistics.Data); SendPacket(pvpMatchStatistics); }