Pathfinding is completely broken.
If not in range, the units (even if ranged unit) tend to walk away from the ship rather than closing out a little bit more and attacking it.
Right now you are forced to manually close out the distance cause the pathfinding for ranged units is completely broken with water in mind.