Let Picked Team Size Work with Team Type Preview

This commit is contained in:
Kris Johnson 2021-10-05 14:48:28 -06:00
parent 286f10047c
commit 9afff7c222

View File

@ -1372,7 +1372,7 @@ export const Rulesets: {[k: string]: FormatData} = {
hasValue: 'positive-integer',
// hardcoded in sim/side
onValidateRule() {
if (!this.ruleTable.has('teampreview')) {
if (!(this.ruleTable.has('teampreview') || this.ruleTable.has('teamtypepreview'))) {
throw new Error(`The "Picked Team Size" rule${this.ruleTable.blame('pickedteamsize')} requires Team Preview.`);
}
},