mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-08-11 05:09:12 +00:00
🐛 fix issue with not learning new moves
This commit is contained in:
parent
62897456ac
commit
61fa831fea
1 changed files with 1 additions and 1 deletions
|
@ -932,7 +932,7 @@ const PokemonEncounter = () => {
|
|||
|
||||
if (stage === 22) {
|
||||
const move = getLearnedMove(processingPokemon);
|
||||
const hasFourMoves = active.moves.length === 4;
|
||||
const hasFourMoves = processingPokemon.moves.length === 4;
|
||||
if (move && !hasFourMoves) {
|
||||
setStage(29);
|
||||
} else if (move && hasFourMoves) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue