From 99aa7854c0bdceca7fb07d9bd42b96c164c366de Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 14 Apr 2024 20:23:51 -0400 Subject: [PATCH] Prevent replacing learnset when species is overridden --- src/field/pokemon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 9fbe01f53..16e695769 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -850,10 +850,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { return true; }); } else - levelMoves = this.getSpeciesForm().getLevelMoves(); + levelMoves = this.getSpeciesForm(true).getLevelMoves(); if (this.fusionSpecies) { const evolutionLevelMoves = levelMoves.slice(0, Math.max(levelMoves.findIndex(lm => !!lm[0]), 0)); - const fusionLevelMoves = this.getFusionSpeciesForm().getLevelMoves(); + const fusionLevelMoves = this.getFusionSpeciesForm(true).getLevelMoves(); const newLevelMoves: LevelMoves = []; while (levelMoves.length && levelMoves[0][0] < startingLevel) levelMoves.shift();