Fix crash

This commit is contained in:
Kris Johnson 2025-09-13 15:35:47 -06:00 committed by GitHub
parent 336f1d58f1
commit 02b461c848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2796,7 +2796,7 @@ export class TeamValidator {
// Pokemon that cannot be sent from Pokemon GO to Let's Go can only access Let's Go moves through HOME
// It can only obtain a chain of four level up moves and cannot have TM moves
const pokemonGoData = dex.species.getPokemonGoData(checkedSpecies.id);
if (pokemonGoData.LGPERestrictiveMoves) {
if (pokemonGoData?.LGPERestrictiveMoves) {
let levelUpMoveCount = 0;
const restrictiveMovesToID = [];
for (const moveName of setSources.restrictiveMoves) {