mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 18:26:09 +00:00
Prevent replacing learnset when species is overridden
This commit is contained in:
parent
208279ce77
commit
99aa7854c0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user