public virtual bool CheckHerding()
{
IPoint2D target = m_Mobile.TargetLocation;
if (target == null)
return false; // Creature is not being herded
double distance = m_Mobile.GetDistanceToSqrt(target);
if (distance < 1 || distance > 15)
{
m_Mobile.TargetLocation = null;
return false; // At the target or too far away
}
DoMove(m_Mobile.GetDirectionTo(target));
return true;
}