From cbcf874ffc579c25feb3a7d6cf5df2163bfa10d6 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 25 Nov 2023 16:17:58 -0500 Subject: [PATCH] Change Memory Mushroom move list to exclude duplicate moves --- src/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index b96648addd1..f263428e0b7 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -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[] {