mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-24 10:39:15 +01:00
[UI] [Bug] Correctly update level after Weird Dream ME (#6876)
This commit is contained in:
parent
8ae898ec30
commit
2256b57370
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user