mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
bug fix on tests
This commit is contained in:
parent
1f955984ca
commit
467ebaa2d7
@ -13,21 +13,21 @@ export function getPokemonNameWithAffix(pokemon: Pokemon | undefined, useIllusio
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (pokemon.scene.currentBattle.battleSpec) {
|
switch (pokemon.scene.currentBattle.battleSpec) {
|
||||||
case BattleSpec.DEFAULT:
|
case BattleSpec.DEFAULT:
|
||||||
return !pokemon.isPlayer()
|
return !pokemon.isPlayer()
|
||||||
? pokemon.hasTrainer()
|
? pokemon.hasTrainer()
|
||||||
? i18next.t("battle:foePokemonWithAffix", {
|
? i18next.t("battle:foePokemonWithAffix", {
|
||||||
pokemonName: pokemon.getNameToRender(useIllusion),
|
pokemonName: pokemon.getNameToRender(useIllusion),
|
||||||
})
|
})
|
||||||
: i18next.t("battle:wildPokemonWithAffix", {
|
: i18next.t("battle:wildPokemonWithAffix", {
|
||||||
pokemonName: pokemon.getNameToRender(useIllusion),
|
pokemonName: pokemon.getNameToRender(useIllusion),
|
||||||
})
|
})
|
||||||
: pokemon.getNameToRender(useIllusion);
|
: pokemon.getNameToRender(useIllusion);
|
||||||
case BattleSpec.FINAL_BOSS:
|
case BattleSpec.FINAL_BOSS:
|
||||||
return !pokemon.isPlayer()
|
return !pokemon.isPlayer()
|
||||||
? i18next.t("battle:foePokemonWithAffix", { pokemonName: pokemon.getNameToRender(useIllusion) })
|
? i18next.t("battle:foePokemonWithAffix", { pokemonName: pokemon.getNameToRender(useIllusion) })
|
||||||
: pokemon.getNameToRender(useIllusion);
|
: pokemon.getNameToRender(useIllusion);
|
||||||
default:
|
default:
|
||||||
return pokemon.getNameToRender(useIllusion);
|
return pokemon.getNameToRender(useIllusion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user