A unit should have multiple weapons with different ranges. I suggest the following:
Create a 1 range weapon then a 2 range weapon. Assign one to the player unit, the other to the enemy unit. Test if they operate as expected. The enemy should be able to hit you from 2 spaces away, but you only can hit them from one. See if the enemy uses this to their advantage or just comes right next to you anyway.
Switch the weapons. See if the player can use the range as expected.
Give the enemy unit two weapons each with the different range. See if they use the greater range first. Shorten the weapon durability to see if they switch to the other one as expected?
Give multiple weapons to the player unit. See if the player can switch between them as expected.
A unit should have multiple weapons with different ranges. I suggest the following: