[Hotfix] Fix cases where hatched Pokemon don't get an egg move (#4102)

Co-authored-by: James Diefenbach <z5421232@ad.unsw.edu.au>
This commit is contained in:
James Diefenbach 2024-09-08 16:45:30 +10:00 committed by GitHub
parent 8082e6dc58
commit 7ab0bbbd94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -448,6 +448,7 @@ export class EggHatchPhase extends Phase {
*/ */
generatePokemon(): PlayerPokemon { generatePokemon(): PlayerPokemon {
this.eggHatchData = this.eggLapsePhase.generatePokemon(this.egg); this.eggHatchData = this.eggLapsePhase.generatePokemon(this.egg);
this.eggMoveIndex = this.eggHatchData.eggMoveIndex;
return this.eggHatchData.pokemon; return this.eggHatchData.pokemon;
} }
} }