Fix affix used in switches

This commit is contained in:
AJ Fontaine 2024-08-29 15:35:41 -04:00
parent 35f522fd99
commit 302d9babbc

View File

@ -71,7 +71,7 @@ export class SwitchSummonPhase extends SummonPhase {
i18next.t("battle:playerComeBack", { pokemonName: getPokemonNameWithAffix(pokemon) }) : i18next.t("battle:playerComeBack", { pokemonName: getPokemonNameWithAffix(pokemon) }) :
i18next.t("battle:trainerComeBack", { i18next.t("battle:trainerComeBack", {
trainerName: this.scene.currentBattle.trainer?.getName(!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER), trainerName: this.scene.currentBattle.trainer?.getName(!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER),
pokemonName: getPokemonNameWithAffix(pokemon) pokemonName: pokemon.getNameToRender()
}) })
); );
this.scene.playSound("se/pb_rel"); this.scene.playSound("se/pb_rel");