mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 10:16:14 +00:00
Change Memory Mushroom move list to exclude duplicate moves
This commit is contained in:
parent
e1768bfc80
commit
cbcf874ffc
@ -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…
Reference in New Issue
Block a user