Beispiel #1
0
        public override void OnDamage(int amount, Mobile from, bool willKill)
        {
            if (willKill)
            {
                SpecialAbilities.MushroomExplosionAbility(this, 8, 10, 0, 4, false);
            }

            base.OnDamage(amount, from, willKill);
        }
Beispiel #2
0
        public override void OnThink()
        {
            base.OnThink();

            if (Utility.RandomDouble() < 0.05 && DateTime.UtcNow > m_NextMushroomExplosionAllowed)
            {
                if (Combatant != null)
                {
                    SpecialAbilities.MushroomExplosionAbility(this, 6, 8, 0, 4, true);

                    m_NextMushroomExplosionAllowed = DateTime.UtcNow + NextMushroomExplosionDelay;
                }
            }
        }