Trainer Pokémon cannot be shiny unless explicitly requested (maybe)

This commit is contained in:
Wlowscha 2025-03-26 01:42:07 +01:00
parent 8b8a92e017
commit 9e013ae52c
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
2 changed files with 4 additions and 2 deletions

View File

@ -1716,7 +1716,7 @@ export function getRandomPartyMemberFunc(
level,
trainerSlot,
undefined,
false,
true, // Shiny lock all trainer Pokémon #TODO: does this affect Ivy's Ray?
undefined,
postProcess,
);
@ -1742,7 +1742,7 @@ function getSpeciesFilterRandomPartyMemberFunc(
.getTrainerSpeciesForLevel(level, true, strength, waveIndex),
);
return globalScene.addEnemyPokemon(species, level, trainerSlot, undefined, false, undefined, postProcess);
return globalScene.addEnemyPokemon(species, level, trainerSlot, undefined, true, undefined, postProcess);
};
}

View File

@ -422,6 +422,8 @@ export default class Trainer extends Phaser.GameObjects.Container {
species,
level,
!this.isDouble() || !(index % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER,
false,
true, // shiny locking all trainer mons
);
},
this.config.hasStaticParty