mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Fix build
This commit is contained in:
parent
9df62c450e
commit
0fc4e743bb
|
|
@ -113,7 +113,7 @@ describe('Dex data', () => {
|
|||
assert.equal(entry.evoItem, item.exists && item.name, `Misspelled/nonexistent evo item "${entry.evoItem}" of ${entry.name}`);
|
||||
}
|
||||
|
||||
const battleOnly = entry.forme.includes('Mega') || entry.forme === 'Primal' ? entry.baseSpecies : entry.battleOnly;
|
||||
const battleOnly = (entry.forme || []).includes('Mega') || entry.forme === 'Primal' ? entry.baseSpecies : entry.battleOnly;
|
||||
if (entry.requiredAbility) {
|
||||
assert(entry.battleOnly, `Forme ${entry.name} with requiredAbility must have battleOnly`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user