Fix using wrong variant value when fusing

This commit is contained in:
Flashfyre 2024-04-26 20:11:37 -04:00
parent 4607782578
commit 00150fd0bb
1 changed files with 2 additions and 1 deletions

View File

@ -1071,6 +1071,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
this.fusionFormIndex = 0;
this.fusionAbilityIndex = 0;
this.fusionShiny = false;
this.fusionVariant = 0;
this.fusionGender = 0;
this.fusionLuck = 0;
@ -2486,7 +2487,7 @@ export class PlayerPokemon extends Pokemon {
this.fusionFormIndex = pokemon.formIndex;
this.fusionAbilityIndex = pokemon.abilityIndex;
this.fusionShiny = pokemon.shiny;
this.fusionVariant = pokemon.fusionVariant;
this.fusionVariant = pokemon.variant;
this.fusionGender = pokemon.gender;
this.fusionLuck = pokemon.luck;