fix: forced stab move not using proper weights

This commit is contained in:
Sirz Benjie 2025-10-05 10:49:17 -05:00
parent f482e8d3d7
commit d367e77e37
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -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);