From d4bdea3e5687058f174c69edd77fba70caf31833 Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Sun, 5 May 2024 15:08:16 +0200 Subject: [PATCH] cleanup --- src/phases.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 70de8db1cb1..f5dde2bb427 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -3646,9 +3646,8 @@ export class ShowPartyExpBarPhase extends PlayerPartyMemberPokemonPhase { let newLevel: integer; pokemon.addExp(exp.value); newLevel = pokemon.level; - if (newLevel > lastLevel) { + if (newLevel > lastLevel) this.scene.unshiftPhase(new LevelUpPhase(this.scene, this.partyMemberIndex, lastLevel, newLevel)); - } this.scene.unshiftPhase(new HidePartyExpBarPhase(this.scene)); pokemon.updateInfo();