Change Memory Mushroom move list to exclude duplicate moves

pull/8/head
Flashfyre 2023-11-25 16:17:58 -05:00
parent e1768bfc80
commit cbcf874ffc
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
getLearnableLevelMoves(): Moves[] {
return this.getLevelMoves(1).filter(lm => !this.moveset.filter(m => m.moveId === lm).length);
return this.getLevelMoves(1).filter(lm => !this.moveset.filter(m => m.moveId === lm).length).filter((move: Moves, i: integer, array: Moves[]) => array.indexOf(move) === i);
}
getTypes(ignoreOverride?: boolean): Type[] {