Ejemplo n.º 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);
        }
Ejemplo n.º 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;
                }
            }
        }