Optimal range calc wasn't taking into account duplicates of the same weapon.