Is Fire Line Free

public virtual bool IsFireLineFree(Unit target)

This method checks whether the line of fire to the target has no obstacles. It is done by casting a ray from the unit’s current shoot point to the target’s center point: if the ray hits the target (or nothing), the method returns true.