protected override bool OnMove(Direction d) { if (Utility.RandomDouble() <= .5) { Acid acid = new Acid(); acid.MoveToWorld(Location, Map); Effects.PlaySound(Location, Map, Utility.RandomList(0x5D9, 0x5DB)); } return(base.OnMove(d)); }
public override void OnGaveMeleeAttack(Mobile defender) { base.OnGaveMeleeAttack(defender); SpecialAbilities.PierceSpecialAbility(.5, this, defender, 50, 15, -1, true, "", "Their acid momentarily weakens your armor!", "-1"); Acid acid = new Acid(); acid.MoveToWorld(defender.Location, Map); Effects.PlaySound(defender.Location, Map, Utility.RandomList(0x22F)); int acidAmount = Utility.RandomMinMax(1, 3); for (int a = 0; a < acidAmount; a++) { Acid extraAcid = new Acid(); extraAcid.MoveToWorld(new Point3D(defender.X + Utility.RandomMinMax(-1, 1), defender.Y + Utility.RandomMinMax(-1, 1), defender.Z), Map); } }