Fixed egg moves being relearnable in daily runs (#3604)

This commit is contained in:
AJ Fontaine 2024-08-17 21:23:02 -04:00 committed by GitHub
parent 8704723c9c
commit 0e92366cac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -922,7 +922,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
*/
getLearnableLevelMoves(): Moves[] {
let levelMoves = this.getLevelMoves(1, true).map(lm => lm[1]);
if (this.metBiome === -1 && !this.scene.gameMode.isFreshStartChallenge()) {
if (this.metBiome === -1 && !this.scene.gameMode.isFreshStartChallenge() && !this.scene.gameMode.isDaily) {
levelMoves = this.getUnlockedEggMoves().concat(levelMoves);
}
return levelMoves.filter(lm => !this.moveset.some(m => m?.moveId === lm));