Ensure shiny and variant status respects illusion properly

This commit is contained in:
Sirz Benjie 2025-05-05 19:39:40 -05:00
parent 3161461b6c
commit f032deff49
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

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.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;