From 61fa831fea16b17639cacbe4d0ac83740aaab351 Mon Sep 17 00:00:00 2001 From: Chase Manning <chase@manning.dev> Date: Sun, 31 Dec 2023 11:12:43 +0000 Subject: [PATCH] :bug: fix issue with not learning new moves --- src/components/PokemonEncounter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PokemonEncounter.tsx b/src/components/PokemonEncounter.tsx index 0d806cf..13417aa 100644 --- a/src/components/PokemonEncounter.tsx +++ b/src/components/PokemonEncounter.tsx @@ -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) {