public virtual int GetTeamSize(int iRange)
{
int iCount = 0;
foreach ( Mobile m in this.GetMobilesInRange( iRange ) )
{
if (m is BaseCreature)
{
if ( ((BaseCreature)m).Team == Team )
{
if ( !m.Deleted )
{
if ( m != this )
{
if ( CanSee( m ) )
{
iCount++;
}
}
}
}
}
}
return iCount;
}