The Barrage Generator and Overcharged Generator have the trigger of "While performing a ranged attack ...". During which step of an attack can you use this? Can I use it during step 6: "Modify Attack Dice"? That feels wrong because then the added die won't be able to be rerolled or have surges converted. I'm guessing it must be done before rolling dice, I just can't find where it states that.
Edited by Wedge1126updated title to be more clear