Ejemplo n.º 1
0
        private static void OnHit(Mobile from, Mobile target, INinjaWeapon weapon)
        {
            if (!from.CanBeHarmful(target))
            {
                return;
            }

            from.DoHarmful(target);

            AOS.Damage(target, from, weapon.WeaponDamage, 100, 0, 0, 0, 0);

            if (weapon.Poison != null && weapon.PoisonCharges > 0)
            {
                if (EvilOmenSpell.EndEffect(target))
                {
                    target.ApplyPoison(from, Poison.GetPoison(weapon.Poison.Level + 1));
                }
                else
                {
                    target.ApplyPoison(from, weapon.Poison);
                }

                weapon.PoisonCharges--;

                if (weapon.PoisonCharges < 1)
                {
                    weapon.Poison = null;
                }
            }
        }