diff --git a/backstop_data/bitmaps_reference/action-1b-9-916_m.png b/backstop_data/bitmaps_reference/action-1b-9-916_m.png index 264f7a4..40f85ad 100644 Binary files a/backstop_data/bitmaps_reference/action-1b-9-916_m.png and b/backstop_data/bitmaps_reference/action-1b-9-916_m.png differ diff --git a/utils/wbsc-validation.ts b/utils/wbsc-validation.ts index f366de3..54f2fdb 100644 --- a/utils/wbsc-validation.ts +++ b/utils/wbsc-validation.ts @@ -143,8 +143,9 @@ function checkOutcome (inputs: WBSCInput[]) { validation = attachValidation(validation, useT('editor.validation.noAdvanceAfterOut')) } } - const maxReachedBase = reachedBases[reachedBases.length - 1] || 0 + const maxReachedBase = reachedBases[reachedBases.length - 1] || output.base const currentReachedBase = Math.max(output.base, output.errorTarget) + if (currentReachedBase > maxReachedBase || (currentReachedBase === maxReachedBase && noAdvActions.includes(input.specAction))) { validation = attachValidation(validation, useT('editor.validation.advanceInOrder')) }