From a70f0860e1c0a88b29b10d64160e2e2c7511b9fa Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 3 Nov 2024 20:34:26 -0800 Subject: [PATCH] [Beta Bug] Enemy pokemon shouldn't get unimplemented moves (#4787) --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index e0ed96504b1..78f82e929de 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -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 ]); } }