Fixed the best attack range computation.

Thanks to @hwoarangmy for pointing out. :)