Fix visual bug with level text remaining the same when pokemon levels are reduced

This commit is contained in:
Payton Rogers 2024-11-09 19:57:17 -06:00
parent 2bf8acea06
commit ec7e212a90

View File

@ -312,6 +312,7 @@ export const WeirdDreamEncounter: MysteryEncounter =
pokemon.levelExp = 0; pokemon.levelExp = 0;
pokemon.calculateStats(); pokemon.calculateStats();
pokemon.getBattleInfo().setLevel(pokemon.level);
await pokemon.updateInfo(); await pokemon.updateInfo();
} }