From 39cfe69cd97f1c0914701f2ab2a9ee2eeccde1ac Mon Sep 17 00:00:00 2001 From: AJ Fontaine <36677462+Fontbane@users.noreply.github.com> Date: Mon, 2 Sep 2024 01:25:45 -0400 Subject: [PATCH] [Bug] Fix affix used when enemy trainer switches Pokemon (#3899) --- src/phases/switch-summon-phase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases/switch-summon-phase.ts b/src/phases/switch-summon-phase.ts index 68dc8f8bf65..8201f2879ed 100644 --- a/src/phases/switch-summon-phase.ts +++ b/src/phases/switch-summon-phase.ts @@ -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");