fix speed level up notification

This commit is contained in:
Greenlamp 2024-05-10 16:32:19 +02:00 committed by Samuel H
parent f1935a3e15
commit 5d62d0bb25
1 changed files with 1 additions and 1 deletions

View File

@ -3752,7 +3752,7 @@ export class ShowPartyExpBarPhase extends PlayerPartyMemberPokemonPhase {
// instead of displaying the exp gain in the small frame, we display the new level
// we use the same method for mode 0 & 1, by giving a parameter saying to display the exp or the level
this.scene.partyExpBar.showPokemonExp(pokemon, exp.value, this.scene.expParty === 1, newLevel).then(() => {
setTimeout(() => this.end(), 800 / Math.pow(2, this.scene.expGainsSpeed/2));
setTimeout(() => this.end(), 800 / Math.pow(2, this.scene.expGainsSpeed));
});
} else {
this.end();