[Bug] Fix affixes appearing when they shouldn't (#3236)
* [Hotfix] Fix interactions of some moves not changing types (#3183) * [Hotfix] Fix wild spawns not having their HA (#3190) * Fix some cases of wrong affixes * There are two trainer send out messages --------- Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
302f1e51a0
commit
e5f458d2c0
|
@ -1437,7 +1437,7 @@ export class SummonPhase extends PartyMemberPokemonPhase {
|
||||||
this.scene.time.delayedCall(750, () => this.summon());
|
this.scene.time.delayedCall(750, () => this.summon());
|
||||||
} else {
|
} else {
|
||||||
const trainerName = this.scene.currentBattle.trainer.getName(!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER);
|
const trainerName = this.scene.currentBattle.trainer.getName(!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER);
|
||||||
const pokemonName = getPokemonNameWithAffix(this.getPokemon());
|
const pokemonName = this.getPokemon().getNameToRender();
|
||||||
const message = i18next.t("battle:trainerSendOut", { trainerName, pokemonName });
|
const message = i18next.t("battle:trainerSendOut", { trainerName, pokemonName });
|
||||||
|
|
||||||
this.scene.pbTrayEnemy.hide();
|
this.scene.pbTrayEnemy.hide();
|
||||||
|
@ -1650,7 +1650,7 @@ export class SwitchSummonPhase extends SummonPhase {
|
||||||
i18next.t("battle:playerGo", { pokemonName: getPokemonNameWithAffix(switchedPokemon) }) :
|
i18next.t("battle:playerGo", { pokemonName: getPokemonNameWithAffix(switchedPokemon) }) :
|
||||||
i18next.t("battle:trainerGo", {
|
i18next.t("battle:trainerGo", {
|
||||||
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(this.getPokemon())
|
pokemonName: this.getPokemon().getNameToRender()
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
// Ensure improperly persisted summon data (such as tags) is cleared upon switching
|
// Ensure improperly persisted summon data (such as tags) is cleared upon switching
|
||||||
|
@ -5038,7 +5038,7 @@ export class AttemptCapturePhase extends PokemonPhase {
|
||||||
Promise.all([pokemon.hideInfo(), this.scene.gameData.setPokemonCaught(pokemon)]).then(() => {
|
Promise.all([pokemon.hideInfo(), this.scene.gameData.setPokemonCaught(pokemon)]).then(() => {
|
||||||
if (this.scene.getParty().length === 6) {
|
if (this.scene.getParty().length === 6) {
|
||||||
const promptRelease = () => {
|
const promptRelease = () => {
|
||||||
this.scene.ui.showText(i18next.t("battle:partyFull", { pokemonName: getPokemonNameWithAffix(pokemon) }), null, () => {
|
this.scene.ui.showText(i18next.t("battle:partyFull", { pokemonName: pokemon.getNameToRender() }), null, () => {
|
||||||
this.scene.pokemonInfoContainer.makeRoomForConfirmUi(1, true);
|
this.scene.pokemonInfoContainer.makeRoomForConfirmUi(1, true);
|
||||||
this.scene.ui.setMode(Mode.CONFIRM, () => {
|
this.scene.ui.setMode(Mode.CONFIRM, () => {
|
||||||
const newPokemon = this.scene.addPlayerPokemon(pokemon.species, pokemon.level, pokemon.abilityIndex, pokemon.formIndex, pokemon.gender, pokemon.shiny, pokemon.variant, pokemon.ivs, pokemon.nature, pokemon);
|
const newPokemon = this.scene.addPlayerPokemon(pokemon.species, pokemon.level, pokemon.abilityIndex, pokemon.formIndex, pokemon.gender, pokemon.shiny, pokemon.variant, pokemon.ivs, pokemon.nature, pokemon);
|
||||||
|
|
Loading…
Reference in New Issue