Fixed AI trying to visit tile already occupied by different hero, including #1902.