mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-19 03:55:13 -04:00
[Beta Bug] Enemy pokemon shouldn't get unimplemented moves (#4787)
This commit is contained in:
parent
618dfbd324
commit
a70f0860e1
1 changed files with 1 additions and 1 deletions
|
@ -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 ]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue