Prevent replacing learnset when species is overridden
parent
208279ce77
commit
99aa7854c0
|
@ -850,10 +850,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
levelMoves = this.getSpeciesForm().getLevelMoves();
|
levelMoves = this.getSpeciesForm(true).getLevelMoves();
|
||||||
if (this.fusionSpecies) {
|
if (this.fusionSpecies) {
|
||||||
const evolutionLevelMoves = levelMoves.slice(0, Math.max(levelMoves.findIndex(lm => !!lm[0]), 0));
|
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 = [];
|
const newLevelMoves: LevelMoves = [];
|
||||||
while (levelMoves.length && levelMoves[0][0] < startingLevel)
|
while (levelMoves.length && levelMoves[0][0] < startingLevel)
|
||||||
levelMoves.shift();
|
levelMoves.shift();
|
||||||
|
|
Loading…
Reference in New Issue