We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Allowed Pokemoves
1 parent 52698d9 commit e03bee0Copy full SHA for e03bee0
config/formats.ts
@@ -1593,8 +1593,12 @@ export const Formats: import('../sim/dex-formats').FormatList = [
1593
set.moves.splice(i, 1);
1594
}
1595
1596
- if (pokemoves > 1) {
1597
- problems.push(`${set.species} has ${pokemoves} Pokemoves.`, `(Pok\u00e9mon can only have 1 Pokemove each.)`);
+ const allowedPokemoves = this.ruleTable.valueRules.get('allowedpokemoves') || 1;
+ if (pokemoves > Number(allowedPokemoves)) {
1598
+ problems.push(
1599
+ `${set.species} has ${pokemoves} Pokemoves.`,
1600
+ `(Pok\u00e9mon can only have ${allowedPokemoves} Pokemove${allowedPokemoves + '' === '1' ? '' : 's'} each.)`
1601
+ );
1602
1603
if (this.validateSet(set, teamHas)) {
1604
return this.validateSet(set, teamHas);
0 commit comments