Fix moveset generation priority reversed

pull/31/head
Flashfyre 2024-04-03 16:35:11 -04:00
parent 77cf3032cf
commit 563ff21ad4
1 changed files with 2 additions and 0 deletions

View File

@ -932,6 +932,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
} }
} }
movePool.reverse();
const attackMovePool = movePool.filter(m => { const attackMovePool = movePool.filter(m => {
const move = allMoves[m]; const move = allMoves[m];
return move.category !== MoveCategory.STATUS; return move.category !== MoveCategory.STATUS;