Is Target In Attack Range

public virtual bool IsTargetInAttackRange(Unit target)

Returns true if the distance from the checking unit to the target is equal to or smaller than this unit’s attack distance parameter.