#region ScreamOfHell
public static void ScreamOfHell(Mobile from)
{
ScreamOfHell(from, 12, TimeSpan.FromMinutes(1));
}
public static void ScreamOfHell(Mobile from, int range)
{
ScreamOfHell(from, range, TimeSpan.FromMinutes(1));
}
public static void ScreamOfHell(Mobile from, int range, TimeSpan duration)
{
if (from.Map != Map.Internal && from.Map != null && from != null && !from.Blessed && from.Alive)
{
IPooledEnumerable eable = from.GetMobilesInRange(range);
foreach (Mobile m in eable)
{
if (m is BaseCreature && !m.Blessed && m.Alive && ((BaseCreature)from).IsEnemy(m) && from.CanBeHarmful(m))
{
BaseCreature b = m as BaseCreature;
if (b.Controlled && b != from)
{
b.Combatant = from;
b.BeginFlee(duration);
}
}
}
}
}