<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>PokemonMove | pokemon-rogue-battle</title><metaname="description"content="Documentation for pokemon-rogue-battle"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os";document.body.style.display="none";setTimeout(()=>app?app.showPage():document.body.style.removeProperty("display"),500)</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">pokemon-rogue-battle</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../index.html">pokemon-rogue-battle</a></li><li><ahref="../modules/field_pokemon.html">field/pokemon</a></li><li><ahref="field_pokemon.PokemonMove.html">PokemonMove</a></li></ul><h1>Class PokemonMove</h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>Wrapper class for the <ahref="data_move.default.html"class="tsd-kind-class"><code>Move</code></a> class for Pokemon to interact with.
<li><ahref="field_pokemon.PokemonMove.html#isUsable"class="tsd-kind-method"><code>isUsable</code></a> - checks if move is restricted, out of PP, or not implemented.</li>
<li><ahref="field_pokemon.PokemonMove.html#getMove"class="tsd-kind-method"><code>getMove</code></a> - returns <ahref="data_move.default.html"class="tsd-kind-class"><code>Move</code></a> object by looking it up via ID.</li>
<li><ahref="field_pokemon.PokemonMove.html#usePp"class="tsd-kind-method"><code>usePp</code></a> - removes a point of PP from the move.</li>
<li><ahref="field_pokemon.PokemonMove.html#getMovePp"class="tsd-kind-method"><code>getMovePp</code></a> - returns amount of PP a move currently has.</li>
<li><ahref="field_pokemon.PokemonMove.html#getPpRatio"class="tsd-kind-method"><code>getPpRatio</code></a> - returns the current PP amount / max PP amount.</li>
<li><ahref="field_pokemon.PokemonMove.html#getName"class="tsd-kind-method"><code>getName</code></a> - returns name of <ahref="data_move.default.html"class="tsd-kind-class"><code>Move</code></a>.</li>
The move is unusable if it is out of PP, restricted by an effect, or unimplemented.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class"><code>Pokemon</code></a> that would be using this move</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">ignorePp</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>If <code>true</code>, skips the PP check</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">ignoreRestrictionTags</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>If <code>true</code>, skips the check for move restriction tags (see <ahref="data_battler_tags.MoveRestrictionBattlerTag.html"class="tsd-kind-class">MoveRestrictionBattlerTag</a>)</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p><code>true</code> if the move can be selected and used by the Pokemon, otherwise <code>false</code>.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/3a5f3c39cda4a55df93517819a009bf328aacc17/src/field/pokemon.ts#L5091">src/field/pokemon.ts:5091</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="usePp"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>use<wbr/>Pp</span><ahref="#usePp"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="usePp.usePp-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">use<wbr/>Pp</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">count</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#usePp.usePp-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>Sets <ahref="field_pokemon.PokemonMove.html#ppUsed"class="tsd-kind-property">ppUsed</a> for this move and ensures the value does not exceed <ahref="field_pokemon.PokemonMove.html#getMovePp"class="tsd-kind-method">getMovePp</a></p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">count</span>: <spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 1</span></span><divclass="tsd-comment tsd-typography"><p>Amount of PP to use</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">source</span>: <spanclass="tsd-signature-type">any</span></span><divclass="tsd-comment tsd-typography"><p>The data for the move to copy</p>