mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-14 13:55:20 +01:00
fix: forced stab move not using proper weights
This commit is contained in:
parent
f482e8d3d7
commit
d367e77e37
@ -702,7 +702,7 @@ export function generateMoveset(pokemon: Pokemon): void {
|
|||||||
debugMoveWeights(pokemon, baseWeights, "Pre STAB Move");
|
debugMoveWeights(pokemon, baseWeights, "Pre STAB Move");
|
||||||
|
|
||||||
// Step 4: Force a STAB move if possible
|
// 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
|
// 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
|
// Would also tweak the function to not consider moves already in the moveset
|
||||||
// e.g. forceStabMove(..., false);
|
// e.g. forceStabMove(..., false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user