mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-14 13:55:20 +01:00
[Bug] Fix Old Gateau disappearing on reload (#6813)
This commit is contained in:
parent
004cb34a46
commit
6d1a69bfea
@ -463,7 +463,7 @@ async function doNewTeamPostProcess(transformations: PokemonTransformation[]) {
|
|||||||
// Any pokemon that is below 570 BST gets +20 permanent BST to 3 stats
|
// Any pokemon that is below 570 BST gets +20 permanent BST to 3 stats
|
||||||
if (shouldGetOldGateau(newPokemon)) {
|
if (shouldGetOldGateau(newPokemon)) {
|
||||||
const modType = modifierTypes.MYSTERY_ENCOUNTER_OLD_GATEAU();
|
const modType = modifierTypes.MYSTERY_ENCOUNTER_OLD_GATEAU();
|
||||||
const modifier = modType?.newModifier(newPokemon);
|
const modifier = modType.withIdFromFunc(modifierTypes.MYSTERY_ENCOUNTER_OLD_GATEAU).newModifier(newPokemon);
|
||||||
if (modifier) {
|
if (modifier) {
|
||||||
globalScene.addModifier(modifier, false, false, false, true);
|
globalScene.addModifier(modifier, false, false, false, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user