mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
made some corrections
This commit is contained in:
parent
b5889ba5c0
commit
aeabcae92f
@ -3734,10 +3734,10 @@ export class FaintPhase extends PokemonPhase {
|
|||||||
// Track total times pokemon have been KO'd for supreme overlord/last respects
|
// Track total times pokemon have been KO'd for supreme overlord/last respects
|
||||||
if (pokemon.isPlayer()) {
|
if (pokemon.isPlayer()) {
|
||||||
this.scene.currentBattle.playerFaints += 1;
|
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 {
|
} else {
|
||||||
this.scene.currentBattle.enemyFaints += 1;
|
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);
|
this.scene.queueMessage(i18next.t("battle:fainted", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon) }), null, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user