Howlrunner's ability states: "When another friendly ship at range 1 is attacking with its primary weapon, it may reroll 1 attack die."
Does the range reference the range between the attacker and the defender, or is it the range between the attacker and Howlrunner? Biggs' ability is also similarly worded, so this question can also apply there.
Thanks.