mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
Work around bug with turn data
This commit is contained in:
parent
3c85696464
commit
4119ebe9a7
@ -3513,6 +3513,10 @@ export class StatChangePhase extends PokemonPhase {
|
||||
|
||||
for (const stat of filteredStats) {
|
||||
if (levels.value > 0 && pokemon.summonData.battleStats[stat] + levels.value <= 6) {
|
||||
if (!pokemon.turnData) {
|
||||
// Temporary fix for missing turn data struct on turn 1
|
||||
pokemon.resetTurnData();
|
||||
}
|
||||
pokemon.turnData.battleStatsChange[stat] += levels.value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user