[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:
parent
68d3d27d47
commit
063e6dbd2d
|
@ -3222,7 +3222,7 @@ export class PlayerPokemon extends Pokemon {
|
|||
}
|
||||
|
||||
if (!dataSource) {
|
||||
this.generateAndPopulateMoveset();
|
||||
this.moveset = [];
|
||||
}
|
||||
this.generateCompatibleTms();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue