mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-24 14:27:37 -04:00
Change Memory Mushroom move list to exclude duplicate moves
This commit is contained in:
parent
e1768bfc80
commit
cbcf874ffc
1 changed files with 1 additions and 1 deletions
|
@ -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[] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue