예제 #1
0
        protected virtual void OnDeserted(PvPTeam team, PlayerMobile pm)
        {
            if (pm == null || pm.Deleted)
            {
                return;
            }

            pm.SendMessage(0x22, "You have deserted {0}!", Name);

            AutoPvP.AddDeserter(pm);

            RevokePoints(pm);

            UpdateStatistics(team, pm, o => ++ o["Deserted"]);

            WorldBroadcast("{0} has deserted {1}!", pm.RawName, Name);
        }