Require sortie slots to match limits
This commit is contained in:
@@ -282,8 +282,10 @@ function validateSortie(errors, scenario, classKeys, formationRoles, terrainRule
|
||||
});
|
||||
});
|
||||
|
||||
if (sortie.deploymentSlots.length < sortie.sortieLimit) {
|
||||
errors.push(`${context}: deploymentSlots count is lower than sortieLimit`);
|
||||
if (sortie.deploymentSlots.length !== sortie.sortieLimit) {
|
||||
errors.push(
|
||||
`${context}: deploymentSlots count ${sortie.deploymentSlots.length} does not match sortieLimit ${sortie.sortieLimit}`
|
||||
);
|
||||
}
|
||||
const deploymentTiles = new Set();
|
||||
const deploymentUnitIds = new Set();
|
||||
|
||||
Reference in New Issue
Block a user