[Bug] Ensure shiny and variant status respects illusion properly (#5784)

Ensure shiny and variant status respects illusion properly
This commit is contained in:
Sirz Benjie 2025-05-05 19:49:59 -05:00 committed by GitHub
parent b42b2f6752
commit 4203513db2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,8 +91,8 @@ export default class PokemonData {
this.formIndex = Math.max(Math.min(source.formIndex, getPokemonSpecies(this.species).forms.length - 1), 0); this.formIndex = Math.max(Math.min(source.formIndex, getPokemonSpecies(this.species).forms.length - 1), 0);
this.abilityIndex = source.abilityIndex; this.abilityIndex = source.abilityIndex;
this.passive = source.passive; this.passive = source.passive;
this.shiny = source.shiny; this.shiny = sourcePokemon?.summonData.illusion?.basePokemon.shiny ?? source.shiny;
this.variant = source.variant; this.variant = sourcePokemon?.summonData.illusion?.basePokemon.variant ?? source.variant;
this.pokeball = source.pokeball ?? PokeballType.POKEBALL; this.pokeball = source.pokeball ?? PokeballType.POKEBALL;
this.level = source.level; this.level = source.level;
this.exp = source.exp; this.exp = source.exp;