mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-07-24 11:52:06 -05:00
Rulesets: Fix crash in CCAPM2 (#7582)
This commit is contained in:
parent
f565659fd3
commit
d625976216
|
|
@ -8,7 +8,7 @@ export const Formats: {[k: string]: ModdedFormatData} = {
|
|||
onValidateTeam(team) {
|
||||
const abilityTable = new Set<string>();
|
||||
for (const set of team) {
|
||||
const ability = toID(set.ability);
|
||||
const ability = this.toID(set.ability);
|
||||
if (!ability) continue;
|
||||
if (abilityTable.has(ability)) {
|
||||
return [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user