mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-14 05:45: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
|
||||
if (shouldGetOldGateau(newPokemon)) {
|
||||
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) {
|
||||
globalScene.addModifier(modifier, false, false, false, true);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user