From a3039ef6a6788b30f8469f419e3af5f8d1f986f6 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Tue, 6 May 2025 07:34:35 +1000 Subject: [PATCH] [Bug] Fix shiny save bug (#5780) Correctly determine shininess and variant during saving --- src/system/pokemon-data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/pokemon-data.ts b/src/system/pokemon-data.ts index ef1f30830f0..248fe9cf513 100644 --- a/src/system/pokemon-data.ts +++ b/src/system/pokemon-data.ts @@ -91,8 +91,8 @@ export default class PokemonData { this.formIndex = Math.max(Math.min(source.formIndex, getPokemonSpecies(this.species).forms.length - 1), 0); this.abilityIndex = source.abilityIndex; this.passive = source.passive; - this.shiny = sourcePokemon?.isShiny() ?? source.shiny; - this.variant = sourcePokemon?.getVariant() ?? source.variant; + this.shiny = source.shiny; + this.variant = source.variant; this.pokeball = source.pokeball ?? PokeballType.POKEBALL; this.level = source.level; this.exp = source.exp;