[Beta Bug] Enemy pokemon shouldn't get unimplemented moves (#4787)

This commit is contained in:
NightKev 2024-11-03 20:34:26 -08:00 committed by GitHub
parent 618dfbd324
commit a70f0860e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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 ]);
}
}