mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
fix training session encounter not applying nature correctly
This commit is contained in:
parent
13841765f1
commit
15922ec05e
@ -226,6 +226,7 @@ export const TrainingSessionEncounter: MysteryEncounter =
|
|||||||
queueEncounterMessage(scene, `${namespace}:option.2.finished`);
|
queueEncounterMessage(scene, `${namespace}:option.2.finished`);
|
||||||
// Add the pokemon back to party with Nature change
|
// Add the pokemon back to party with Nature change
|
||||||
playerPokemon.setNature(encounter.misc.chosenNature);
|
playerPokemon.setNature(encounter.misc.chosenNature);
|
||||||
|
playerPokemon.customPokemonData.nature = encounter.misc.chosenNature;
|
||||||
scene.gameData.setPokemonCaught(playerPokemon, false);
|
scene.gameData.setPokemonCaught(playerPokemon, false);
|
||||||
|
|
||||||
// Add pokemon and modifiers back
|
// Add pokemon and modifiers back
|
||||||
|
Loading…
Reference in New Issue
Block a user