mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 12:36:41 -05:00
`maxTeamSize` is a bad variable name (not that `teamLength.battle` is any better, but that'll get fixed in a future refactor). - Rename `maxTeamSize` to `chosenTeamSize`, to better indicate that this is the size after Team Preview, and that it is also the minimum size after Team Preview. - Don't limit team sizes to 6 if `teamLength.battle` isn't specified. This removes an unnecessary `teamLength.battle` requirement in all Custom Game formats. - Stop requiring `maxTeamSize` as a parameter for `battle.getRequests`. It's not even used except as a hint to the Preact client, and was never state in the first place. - Stop supporting partial `side.chooseTeam`. This is an unused feature and removing it massively simplifies the code and fixes a bug in `cupLevelLimit` which definitely was not written with the understanding that `chooseTeam` could be partial. - Fix a bug in #7929 which seemed to misunderstand what `teamsize` was for. |
||
|---|---|---|
| .. | ||
| lib | ||
| random-battles | ||
| replays | ||
| server | ||
| sim | ||
| tools/modlog | ||
| assert.js | ||
| common.js | ||
| main.js | ||
| users-utils.js | ||