public override void MakeGuard( Mobile focus )
{
BaseGuard useGuard = null;
foreach ( Mobile m in focus.GetMobilesInRange( 8 ) )
{
if ( m is BaseGuard )
{
BaseGuard g = (BaseGuard)m;
if ( g.Focus == null ) // idling
{
useGuard = g;
break;
}
}
}
if ( useGuard == null )
{
m_GuardParams[0] = focus;
try { Activator.CreateInstance( m_GuardType, m_GuardParams ); } catch {}
}
else
useGuard.Focus = focus;
}