[Bug] Fix affix used when enemy trainer switches Pokemon (#3899)

This commit is contained in:
AJ Fontaine 2024-09-02 01:25:45 -04:00 committed by GitHub
parent 634bfb7900
commit 39cfe69cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export class SwitchSummonPhase extends SummonPhase {
i18next.t("battle:playerComeBack", { pokemonName: getPokemonNameWithAffix(pokemon) }) :
i18next.t("battle:trainerComeBack", {
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");