[UI] [Bug] Correctly update level after Weird Dream ME (#6876)

This commit is contained in:
Fabi 2025-12-20 21:36:42 +01:00 committed by GitHub
parent 8ae898ec30
commit 2256b57370
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -207,6 +207,7 @@ export class PlayerBattleInfo extends BattleInfo {
this.lastLevelCapped = isLevelCapped;
if (this.lastExp !== pokemon.exp || this.lastLevel !== pokemon.level) {
this.lastLevel = Math.min(this.lastLevel, pokemon.level);
const durationMultiplier = Math.max(
Phaser.Tweens.Builders.GetEaseFunction("Cubic.easeIn")(1 - Math.min(pokemon.level - this.lastLevel, 10) / 10),
0.1,