Ok so I just watched an old ffg x wing tutorial and it showed the attacker roll dice then modified them, then the defender rolled and they compared them and assigned damage.
I thought it was like this
Attacker rolls
Defender modifies attack dice
Attacker modifies attack dice
Defender rolls dice
Attacker modifies defense dice
Defender modifies defense dice
Compare and assign damage.
Example
I roll 1 hit, 1 crit, 1 blank
Defender uses sensor jammer to change 1 hit to focus.
I in turn use focus to change back to hit.
Defender rolls dice
Rolls 1 focus, 1 blank.
I can't modify them
He uses his evade token
End result he takes 1 critical
Thanks for any info or links in errata that states it