From d367e77e3724e3aff181155e63041f1b1ca34054 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Sun, 5 Oct 2025 10:49:17 -0500 Subject: [PATCH] fix: forced stab move not using proper weights --- src/ai/ai-moveset-gen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/ai-moveset-gen.ts b/src/ai/ai-moveset-gen.ts index 1b503ac8099..b8ff504d844 100644 --- a/src/ai/ai-moveset-gen.ts +++ b/src/ai/ai-moveset-gen.ts @@ -702,7 +702,7 @@ export function generateMoveset(pokemon: Pokemon): void { debugMoveWeights(pokemon, baseWeights, "Pre STAB Move"); // Step 4: Force a STAB move if possible - forceStabMove(movePool, tmPool, eggMovePool, pokemon, tmCount, eggMoveCount, willTera); + forceStabMove(baseWeights, tmPool, eggMovePool, pokemon, tmCount, eggMoveCount, willTera); // Note: To force a secondary stab, call this a second time, and pass `false` for the last parameter // Would also tweak the function to not consider moves already in the moveset // e.g. forceStabMove(..., false);