[Bug] Player pokemon shouldn't generate an NPC moveset (#3356)

* Player pokemon shouldn't generate an NPC moveset

* Make sure Keldeo starts new runs in the correct form
This commit is contained in:
NightKev 2024-08-05 07:22:06 -07:00 committed by GitHub
parent 68d3d27d47
commit 063e6dbd2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -3222,7 +3222,7 @@ export class PlayerPokemon extends Pokemon {
}
if (!dataSource) {
this.generateAndPopulateMoveset();
this.moveset = [];
}
this.generateCompatibleTms();
}

View File

@ -642,6 +642,10 @@ export class SelectStarterPhase extends Phase {
this.scene.arena.init();
this.scene.sessionPlayTime = 0;
this.scene.lastSavePlayTime = 0;
// Ensures Keldeo (or any future Pokemon that have this type of form change) starts in the correct form
this.scene.getParty().forEach((p: PlayerPokemon) => {
this.scene.triggerPokemonFormChange(p, SpeciesFormChangeMoveLearnedTrigger);
});
this.end();
});
}