mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Let Picked Team Size Work with Team Type Preview
This commit is contained in:
parent
286f10047c
commit
9afff7c222
|
|
@ -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.`);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user