Pirates always try to get as far away as the range of the weapon with the highest range.
If a pirate has cannons and Missiles it will always get into the range of the missiles only which makes the cannons useless or any other weapon system with a lower range.
Please change it to the smallest weapon range!