private bool IsHostile(Mobile from)
{
int count = Math.Max(m_Mobile.Aggressors.Count, m_Mobile.Aggressed.Count);
if (m_Mobile.Combatant == from || from.Combatant == m_Mobile)
{
return true;
}
if (count > 0)
{
for (int a = 0; a < count; ++a)
{
if (a < m_Mobile.Aggressed.Count && m_Mobile.Aggressed[a].Attacker == from)
{
return true;
}
if (a < m_Mobile.Aggressors.Count && m_Mobile.Aggressors[a].Defender == from)
{
return true;
}
}
}
return false;
}