From 514c6a196cec3b9f90217bbb8097a9c4bf54fba4 Mon Sep 17 00:00:00 2001 From: mcmontag <54485715+mcmontag@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:16:57 -0400 Subject: [PATCH] [Bug] Fix level 100 moves being skipped if leveled past 100 (#3040) --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index 27967dcc2b8..b11abb33ca4 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -4587,7 +4587,7 @@ export class LevelUpPhase extends PlayerPartyMemberPokemonPhase { // we still want to display the stats if activated this.scene.ui.getMessageHandler().promptLevelUpStats(this.partyMemberIndex, prevStats, false).then(() => this.end()); } - if (this.level <= 100) { + if (this.lastLevel < 100) { // this feels like an unnecessary optimization const levelMoves = this.getPokemon().getLevelMoves(this.lastLevel + 1); for (const lm of levelMoves) { this.scene.unshiftPhase(new LearnMovePhase(this.scene, this.partyMemberIndex, lm[1]));