diff --git a/scripts/verify-campaign-flow-data.mjs b/scripts/verify-campaign-flow-data.mjs index d44ddfe..0a951c9 100644 --- a/scripts/verify-campaign-flow-data.mjs +++ b/scripts/verify-campaign-flow-data.mjs @@ -59,6 +59,9 @@ for (const flowKey of sortieFlowKeys) { assert(afterBattleId, `Sortie flow ${flowKey} has no afterBattleId`); if (afterBattleId) { assert(battleIds.has(afterBattleId), `Sortie flow ${flowKey} references unknown afterBattleId: ${afterBattleId}`); + if (battleIds.has(flowKey)) { + assert(afterBattleId === flowKey, `Sortie flow ${flowKey} afterBattleId points to ${afterBattleId}`); + } } assert(/\bpages\s*:/.test(flowBody), `Sortie flow ${flowKey} must provide story pages`); for (const fieldName of sortieFlowDisplayFields) {