public static void Vanish(Mobile mobile)
{
if (mobile == null)
{
return;
}
mobile.PlaySound(0x657);
int projectiles = 6;
int particleSpeed = 4;
for (int a = 0; a < projectiles; a++)
{
Point3D newLocation = new Point3D(mobile.X + Utility.RandomList(-5, -4, -3, -2, -1, 1, 2, 3, 4, 5), mobile.Y + Utility.RandomList(-5, -4, -3, -2, -1, 1, 2, 3, 4, 5), mobile.Z);
SpellHelper.AdjustField(ref newLocation, mobile.Map, 12, false);
IEntity effectStartLocation = new Entity(Serial.Zero, new Point3D(mobile.X, mobile.Y, mobile.Z + 5), mobile.Map);
IEntity effectEndLocation = new Entity(Serial.Zero, new Point3D(newLocation.X, newLocation.Y, newLocation.Z + 5), mobile.Map);
Effects.SendMovingEffect(effectStartLocation, effectEndLocation, Utility.RandomList(0x3728), particleSpeed, 0, false, false, 0, 0);
}
}