예제 #1
0
        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);
        }
예제 #2
0
        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);
        }