<p>The game then goes <code>Mode.SUMMARY</code> to select a move to be forgotten.
If a player does not select a move or chooses the new move (<code>moveIndex === 4</code>), the game goes to <code>this.rejectMoveAndEnd()</code>.
If an old move is selected, the function then passes the <code>moveIndex</code> to <code>this.learnMove()</code></p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="data_move.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p>The Move to be learned</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e5af2dc49a51500144cef94bc5e1e6acdba54246/src/phases/learn-move-phase.ts#L85">src/phases/learn-move-phase.ts:85</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="getParty"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Party</span><ahref="#getParty"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="getParty.getParty-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Party</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a><spanclass="tsd-signature-symbol">[]</span><ahref="#getParty.getParty-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a><spanclass="tsd-signature-symbol">[]</span></h4><asideclass="tsd-sources"><p>Inherited from <ahref="phases_player_party_member_pokemon_phase.PlayerPartyMemberPokemonPhase.html">PlayerPartyMemberPokemonPhase</a>.<ahref="phases_player_party_member_pokemon_phase.PlayerPartyMemberPokemonPhase.html#getParty">getParty</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e5af2dc49a51500144cef94bc5e1e6acdba54246/src/phases/party-member-pokemon-phase.ts#L20">src/phases/party-member-pokemon-phase.ts:20</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="getPlayerPokemon"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Player<wbr/>Pokemon</span><ahref="#getPlayerPokemon"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="getPlayerPokemon.getPlayerPokemon-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Player<wbr/>Pokemon</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><ahref="#getPlayerPokemon.getPlayerPokemon-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a></h4><asideclass="tsd-sources"><p>Inherited from <ahref="phases_player_party_member_pokemon_phase.PlayerPartyMemberPokemonPhase.html">PlayerPartyMemberPokemonPhase</a>.<ahref="phases_player_party_member_pokemon_phase.PlayerPartyMemberPokemonPhase.html#getPlayerPokemon">getPlayerPokemon</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e5af2dc49a51500144cef94bc5e1e6acdba54246/src/phases/player-party-member-pokemon-phase.ts#L10">src/phases/player-party-member-pokemon-phase.ts:10</a></li
When a Pokemon forgets a move and learns a new one, its 'Learn Move' message is significantly longer.</p>
<p>Pokemon with a <code>moveset.length < 4</code></p>
<blockquote>
<p>[Pokemon] learned [MoveName]</p>
</blockquote>
<p>Pokemon with a <code>moveset.length > 4</code></p>
<blockquote>
<p>1... 2... and 3... and Poof!
[Pokemon] forgot how to use [MoveName]
And...
[Pokemon] learned [MoveName]!</p>
</blockquote>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">index</span>: <spanclass="tsd-signature-type">number</span></span></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="data_move.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p>The Move to be learned</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">textMessage</span>: <spanclass="tsd-signature-type">string</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e5af2dc49a51500144cef94bc5e1e6acdba54246/src/phases/learn-move-phase.ts#L138">src/phases/learn-move-phase.ts:138</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="rejectMoveAndEnd"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>reject<wbr/>Move<wbr/>And<wbr/>End</span><ahref="#rejectMoveAndEnd"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="rejectMoveAndEnd.rejectMoveAndEnd-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">reject<wbr/>Move<wbr/>And<wbr/>End</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">pokemon</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#rejectMoveAndEnd.rejectMoveAndEnd-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>This asks the player if they wish to end the current move learning process.</p>
<blockquote>
<p>Stop trying to teach [MoveName]? --><code>Mode.CONFIRM</code> --> Yes: > [Pokemon] did not learn the move [MoveName], No: <code>this.replaceMoveCheck()</code></p>
</blockquote>
<p>If the player wishes to not teach the Pokemon the move, it displays a message and ends the phase.
If the player reconsiders, it repeats the process for a Pokemon with a full moveset once again.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="data_move.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p>The Move to be learned</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/e5af2dc49a51500144cef94bc5e1e6acdba54246/src/phases/learn-move-phase.ts#L109">src/phases/learn-move-phase.ts:109</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="replaceMoveCheck"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>replace<wbr/>Move<wbr/>Check</span><ahref="#replaceMoveCheck"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="replaceMoveCheck.replaceMoveCheck-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">replace<wbr/>Move<wbr/>Check</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">pokemon</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#replaceMoveCheck.replaceMoveCheck-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>This displays a chain of messages (listed below) and asks if the user wishes to forget a move.</p>
<blockquote>
<p>[Pokemon] wants to learn the move [MoveName]
However, [Pokemon] already knows four moves.
Should a move be forgotten and replaced with [MoveName]? --><code>Mode.CONFIRM</code> -> Yes: Go to <code>this.forgetMoveProcess()</code>, No: Go to <code>this.rejectMoveAndEnd()</code></p>
</blockquote>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="data_move.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p>The Move to be learned</p>