Ejemplo n.º 1
0
        public override void OnDeath(Mobile m)
        {
            if (!Controller.InUse)
            {
                return;
            }

            if (m is PlayerMobile)
            {
                m.SendMessage("You have died in the Field Duel!!");
                for (int x = 0; x < 5; x++)
                {
                    Controller.LaunchFireworks(m);
                }
                Timer.DelayCall(TimeSpan.FromSeconds(5.0), new TimerStateCallback(Controller.HandleDeath), (object)m);
            }
            else
            {
                m.Corpse.Delete();
            }
        }