From 4203513db2b736da3e44b5d2615ee15ab6aaade8 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Mon, 5 May 2025 19:49:59 -0500 Subject: [PATCH] [Bug] Ensure shiny and variant status respects illusion properly (#5784) Ensure shiny and variant status respects illusion properly --- 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 248fe9cf513..8d4fd7c05df 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 = source.shiny; - this.variant = source.variant; + this.shiny = sourcePokemon?.summonData.illusion?.basePokemon.shiny ?? source.shiny; + this.variant = sourcePokemon?.summonData.illusion?.basePokemon.variant ?? source.variant; this.pokeball = source.pokeball ?? PokeballType.POKEBALL; this.level = source.level; this.exp = source.exp;