"DURING THE ACTIVATION PHASE, any ship that is caught within the wave (i.e. whose base is within the appropriate Range of the E edge of the play area) must immediately roll 4 attack dice (prior to taking any Actions) and apply the following changes to that ship for each die:"
and then says:
"A ship that is caught within the SDW may avoid some of the effects of the wave by spending its Action and disabling all of its remaining Active Shields. If it does so, only 1 attack die is rolled against that ship instead of 4 that round. Place a Critical Hit Token on that ship’s Ship Card."
When exactly during its Activation does the ship make the roll for the wave?