From aeabcae92fcfacefbbe1e994bc81fddf1aefd02d Mon Sep 17 00:00:00 2001 From: Lylian Date: Wed, 10 Jul 2024 23:37:04 +0200 Subject: [PATCH] made some corrections --- src/phases.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 5a0b17b46df..4579d2c5ae3 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -3734,10 +3734,10 @@ export class FaintPhase extends PokemonPhase { // Track total times pokemon have been KO'd for supreme overlord/last respects if (pokemon.isPlayer()) { this.scene.currentBattle.playerFaints += 1; - this.scene.currentBattle.playerFaintsHistory = [...this.scene.currentBattle.playerFaintsHistory, {pokemon, turn: this.scene.currentBattle.turn}]; + this.scene.currentBattle.playerFaintsHistory.push({pokemon, turn: this.scene.currentBattle.turn}); } else { this.scene.currentBattle.enemyFaints += 1; - this.scene.currentBattle.enemyFaintsHistory = [...this.scene.currentBattle.enemyFaintsHistory, {pokemon, turn: this.scene.currentBattle.turn}]; + this.scene.currentBattle.enemyFaintsHistory.push({pokemon, turn: this.scene.currentBattle.turn}); } this.scene.queueMessage(i18next.t("battle:fainted", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }), null, true);