mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
[Bug] Ensure shiny and variant status respects illusion properly (#5784)
Ensure shiny and variant status respects illusion properly
This commit is contained in:
parent
b42b2f6752
commit
4203513db2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user