Update faint-phase.ts

This commit is contained in:
geeilhan 2025-01-28 14:16:32 +01:00 committed by GitHub
parent 51e1ae150f
commit 705a951347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@ export class FaintPhase extends PokemonPhase {
const pokemon = this.getPokemon(); const pokemon = this.getPokemon();
// Track total times pokemon have been KO'd for last respect // Track total times pokemon have been KO'd for last respects
if (pokemon.isPlayer()) { if (pokemon.isPlayer()) {
globalScene.currentBattle.playerFaints += 1; globalScene.currentBattle.playerFaints += 1;
globalScene.currentBattle.playerFaintsHistory.push({ pokemon: pokemon, turn: globalScene.currentBattle.turn }); globalScene.currentBattle.playerFaintsHistory.push({ pokemon: pokemon, turn: globalScene.currentBattle.turn });