[Bug] Fix Old Gateau disappearing on reload (#6813)

This commit is contained in:
Austin Fontaine 2025-12-02 01:52:54 -05:00 committed by GitHub
parent 004cb34a46
commit 6d1a69bfea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}