Exemple #1
0
        public override void OnDeath(Container c)
        {
            _FireBreathTimer.Stop();
            _WaterBreathTimer.Stop();

            InvalidateHue();

            foreach (BloodoftheHydra target in _Bloods.ToArray())
            {
                target.Kill();
            }

            _Bloods.Clear();

            var scroll = new SkillScroll();

            scroll.Randomize();
            c.DropItem(scroll);

            scroll = new SkillScroll();
            scroll.Randomize();
            c.DropItem(scroll);

            scroll = new SkillScroll();
            scroll.Randomize();
            c.DropItem(scroll);

            scroll = new SkillScroll();
            scroll.Randomize();
            c.DropItem(scroll);

            if (_Moongate != null && !_Moongate.Deleted)
            {
                _Moongate.Delete();
            }

            if (GlobalTownCrierEntryList.Instance.Entries != null)
            {
                GlobalTownCrierEntryList.Instance.Entries.Clear();
            }

            base.OnDeath(c);
        }