From 532a27016b682d4ad0ae659806db42df11981010 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 28 Feb 2024 12:36:27 -0500 Subject: [PATCH] Teach secondary Pokemon moveset when after fusing --- src/pokemon.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index 8b91a9e92..8b200e7c7 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -15,7 +15,7 @@ import { initMoveAnim, loadMoveAnimAssets } from './data/battle-anims'; import { Status, StatusEffect } from './data/status-effect'; import { reverseCompatibleTms, tmSpecies } from './data/tms'; import { pokemonEvolutions, pokemonPrevolutions, SpeciesFormEvolution, SpeciesEvolutionCondition } from './data/pokemon-evolutions'; -import { DamagePhase, FaintPhase, StatChangePhase, SwitchSummonPhase } from './phases'; +import { DamagePhase, FaintPhase, LearnMovePhase, StatChangePhase, SwitchSummonPhase } from './phases'; import { BattleStat } from './data/battle-stat'; import { BattlerTag, BattlerTagLapseType, EncoreTag, TypeBoostTag, getBattlerTag } from './data/battler-tags'; import { BattlerTagType } from "./data/enums/battler-tag-type"; @@ -2065,6 +2065,7 @@ export class PlayerPokemon extends Pokemon { this.generateName(); this.calculateStats(); this.generateCompatibleTms(); + pokemon.getMoveset(true).map(m => this.scene.unshiftPhase(new LearnMovePhase(this.scene, this.scene.getParty().indexOf(this), m.getMove().id))); this.updateInfo(true).then(() => { const fusedPartyMemberIndex = this.scene.getParty().indexOf(pokemon); const fusedPartyMemberHeldModifiers = this.scene.findModifiers(m => m instanceof PokemonHeldItemModifier