Sage of ages, level 24:
Keeper's Prescience (24th level): At the start of each of your turns, roll a d20. You can use the result of that roll in place of any one d20 roll you make before the start of your next turn.
Does this replacement occur before the d20 roll or can it be used to replace an already rolled d20?
