Enemy pokemon shouldn't get unimplemented moves

This commit is contained in:
NightKev 2024-11-03 20:11:21 -08:00
parent 618dfbd324
commit eb02e8b660

View File

@ -2101,7 +2101,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (weight === 1 && allMoves[levelMove[1]].power >= 80) {
weight = 40;
}
if (!movePool.some(m => m[0] === levelMove[1])) {
if (!movePool.some(m => m[0] === levelMove[1]) && !allMoves[levelMove[1]].name.endsWith(" (N)")) {
movePool.push([ levelMove[1], weight ]);
}
}