When during the attack does Makashi Mastery let me reduce my pierce value? Could I, for example, roll my dice, re-roll my dice, then choose to use Makashi Mastery? Direct quotes below for reference. The underlying question here is What is the timing of While.
Makashi Mastery
"Those who have masted the Makashi style have turned lightsaber dueling into a true art form. While a unit with the makashi mastery keyword performs a melee attack, it can reduce the pierce x value of the weapon with which it is performing the attack by 1. If it does, the defender cannot use the immune: pierce and impervious keywords."