One of the features of the Arcane Archer fighter subclass is Curving Shot:
At 7th level, you learn how to direct an errant arrow toward a new target. When you make an attack roll with a magic arrow and miss, you can use a bonus action to reroll the attack roll against a different target within 60 feet of the original target. [XGtE, pg. 28]
How does this interact with range?
The Player's Handbook describes range as follows:
The range lists two numbers. The first is the weapon’s normal range in feet, and the second indicates the weapon’s maximum range. When attacking a target beyond normal range, you have disadvantage on the attack roll. You can’t attack a target beyond the weapon’s long range. [PHB, pg. 147]
I see at least four ways this might interact with Curving Shot:
The distance between the old target and new target is added to the shot's original range. This may extend the range to beyond normal (in which case the new attack role must be made at disadvantage) or beyond maximum (in which case the new target is not valid).
The range of the redirected shot is only the distance between the old target and new target. The shot has a new point of origin at the old target, so the new range will be between 0 and 60 feet, as limited by Curving Shot.
The range of the redirected shot is the distance between the archer and the new target. If the new target is farther from the archer than the old one was, the range will be larger; if the new target is closer, the range will be smaller.
The range between the archer and old target is all that matters. As long as the distance from the old target to the new target is within the 60 feet defined in Curving Shot, the initial range between the archer and the old target is all that matters. The initial attack is rerolled as is.
Related
How does cover interact with the Arcane Archer's Curving Shot?