mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-09 17:09:26 +02:00
108 lines
105 KiB
HTML
108 lines
105 KiB
HTML
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MovePhase | pokemon-rogue-battle</title><meta name="description" content="Documentation for pokemon-rogue-battle"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">pokemon-rogue-battle</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/phases_move-phase.html">phases/move-phase</a></li><li><a href="" aria-current="page">MovePhase</a></li></ul><h1>Class MovePhase</h1></div><section class="tsd-panel tsd-hierarchy" data-refl="49555"><h4>Hierarchy (<a href="../hierarchy.html#phases/move-phase.MovePhase">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="phases_battle-phase.BattlePhase.html" class="tsd-signature-type tsd-kind-class">BattlePhase</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">MovePhase</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L31">src/phases/move-phase.ts:31</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#_move" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>move</span></a>
|
||
<a href="#_pokemon" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>pokemon</span></a>
|
||
<a href="#_targets" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>targets</span></a>
|
||
<a href="#cancelled" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cancelled</span></a>
|
||
<a href="#failed" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>failed</span></a>
|
||
<a href="#forcedlast" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>forced<wbr/>Last</span></a>
|
||
<a href="#phasename" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>phase<wbr/>Name</span></a>
|
||
<a href="#usemode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>use<wbr/>Mode</span></a>
|
||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="#move" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>move</span></a>
|
||
<a href="#pokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>pokemon</span></a>
|
||
<a href="#targets" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>targets</span></a>
|
||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#cancel" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a>
|
||
<a href="#canmove" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>can<wbr/>Move</span></a>
|
||
<a href="#chargemove" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>charge<wbr/>Move</span></a>
|
||
<a href="#end" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>end</span></a>
|
||
<a href="#fail" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fail</span></a>
|
||
<a href="#failmove" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fail<wbr/>Move</span></a>
|
||
<a href="#getactivetargetpokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Active<wbr/>Target<wbr/>Pokemon</span></a>
|
||
<a href="#getppincreasefrompressure" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Pp<wbr/>Increase<wbr/>From<wbr/>Pressure</span></a>
|
||
<a href="#handlepremovefailures" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>handle<wbr/>Pre<wbr/>Move<wbr/>Failures</span></a>
|
||
<a href="#hideenemytrainer" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hide<wbr/>Enemy<wbr/>Trainer</span></a>
|
||
<a href="#is" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is</span></a>
|
||
<a href="#isforcedlast" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Forced<wbr/>Last</span></a>
|
||
<a href="#lapsepremoveandmovetags" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>lapse<wbr/>Pre<wbr/>Move<wbr/>And<wbr/>Move<wbr/>Tags</span></a>
|
||
<a href="#resolvecounterattacktarget" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Counter<wbr/>Attack<wbr/>Target</span></a>
|
||
<a href="#resolvefinalpremovecancellationchecks" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Final<wbr/>Pre<wbr/>Move<wbr/>Cancellation<wbr/>Checks</span></a>
|
||
<a href="#resolvepremovestatuseffects" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Pre<wbr/>Move<wbr/>Status<wbr/>Effects</span></a>
|
||
<a href="#resolveredirecttarget" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Redirect<wbr/>Target</span></a>
|
||
<a href="#showenemytrainer" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Enemy<wbr/>Trainer</span></a>
|
||
<a href="#showfailedtext" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Failed<wbr/>Text</span></a>
|
||
<a href="#showmovetext" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Move<wbr/>Text</span></a>
|
||
<a href="#start" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>start</span></a>
|
||
<a href="#usemove" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>use<wbr/>Move</span></a>
|
||
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Constructors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="constructormovephase"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">MovePhase</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">targets</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">move</span><span class="tsd-signature-symbol">:</span> <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">useMode</span><span class="tsd-signature-symbol">:</span> <a href="../types/enums_move-use-mode.MoveUseMode.html" class="tsd-signature-type tsd-kind-type-alias">MoveUseMode</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">forcedLast</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">MovePhase</a><a href="#constructormovephase" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Create a new MovePhase for using moves.</p>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.Pokemon.html" class="tsd-kind-class"><code>Pokemon</code></a> using the move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">targets</span>: <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span></span></li><li><span><span class="tsd-kind-parameter">move</span>: <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a></span><div class="tsd-comment tsd-typography"><p>The <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-kind-class"><code>PokemonMove</code></a> to use</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">useMode</span>: <a href="../types/enums_move-use-mode.MoveUseMode.html" class="tsd-signature-type tsd-kind-type-alias">MoveUseMode</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../variables/enums_move-use-mode.MoveUseMode.html" class="tsd-kind-variable"><code>MoveUseMode</code></a> corresponding to this move's means of execution (usually <code>MoveUseMode.NORMAL</code>).
|
||
Not marked optional to ensure callers correctly pass on <code>useModes</code>.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">forcedLast</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Whether to force this phase to occur last in order (for <a href="../enums/enums_move-id.MoveId.html#quash" class="tsd-kind-enum-member"><code>MoveId.QUASH</code></a>); default <code>false</code></p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">MovePhase</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Overrides <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L77">src/phases/move-phase.ts:77</a></li></ul></aside></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="_move"><code class="tsd-tag">Protected</code><span>_<wbr/>move</span><a href="#_move" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_move</span><span class="tsd-signature-symbol">:</span> <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L34">src/phases/move-phase.ts:34</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="_pokemon"><code class="tsd-tag">Protected</code><span>_<wbr/>pokemon</span><a href="#_pokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_pokemon</span><span class="tsd-signature-symbol">:</span> <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L33">src/phases/move-phase.ts:33</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="_targets"><code class="tsd-tag">Protected</code><span>_<wbr/>targets</span><a href="#_targets" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_targets</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L35">src/phases/move-phase.ts:35</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="cancelled"><code class="tsd-tag">Protected</code><span>cancelled</span><a href="#cancelled" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">cancelled</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><div class="tsd-comment tsd-typography"><p>Whether the current move should fail and retain PP.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L42">src/phases/move-phase.ts:42</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="failed"><code class="tsd-tag">Protected</code><span>failed</span><a href="#failed" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">failed</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><div class="tsd-comment tsd-typography"><p>Whether the current move should fail but still use PP.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L40">src/phases/move-phase.ts:40</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="forcedlast"><code class="tsd-tag">Protected</code><span>forced<wbr/>Last</span><a href="#forcedlast" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">forcedLast</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>Whether the current move is forced last (used for Quash).</p>
|
||
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L38">src/phases/move-phase.ts:38</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="phasename"><code class="tsd-tag">Readonly</code><span>phase<wbr/>Name</span><a href="#phasename" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">phaseName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"MovePhase"</span></div><div class="tsd-comment tsd-typography"><p>The string name of the phase, used to identify the phase type for <a href="phase.Phase.html#is" class="tsd-kind-method"><code>is</code></a></p>
|
||
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Overrides <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#phasename">phaseName</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L32">src/phases/move-phase.ts:32</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="usemode"><code class="tsd-tag">Readonly</code><span>use<wbr/>Mode</span><a href="#usemode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">useMode</span><span class="tsd-signature-symbol">:</span> <a href="../types/enums_move-use-mode.MoveUseMode.html" class="tsd-signature-type tsd-kind-type-alias">MoveUseMode</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L36">src/phases/move-phase.ts:36</a></li></ul></aside></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Accessors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="move"><span>move</span><a href="#move" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="movemove"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">move</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L53">src/phases/move-phase.ts:53</a></li></ul></aside></div></li><li><div class="tsd-signature" id="movemove-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">move</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">move</span><span class="tsd-signature-symbol">:</span> <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">move</span>: <a href="data_moves_pokemon-move.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L57">src/phases/move-phase.ts:57</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="pokemon"><span>pokemon</span><a href="#pokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="pokemonpokemon"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">pokemon</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L44">src/phases/move-phase.ts:44</a></li></ul></aside></div></li><li><div class="tsd-signature" id="pokemonpokemon-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">pokemon</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">:</span> <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L49">src/phases/move-phase.ts:49</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="targets"><span>targets</span><a href="#targets" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="targetstargets"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">targets</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L61">src/phases/move-phase.ts:61</a></li></ul></aside></div></li><li><div class="tsd-signature" id="targetstargets-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">targets</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">targets</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">targets</span>: <a href="../enums/enums_battler-index.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L65">src/phases/move-phase.ts:65</a></li></ul></aside></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Methods</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="cancel"><span>cancel</span><a href="#cancel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="cancel-1"><span class="tsd-kind-call-signature">cancel</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#cancel-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Signifies the current move should cancel and retain PP</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L106">src/phases/move-phase.ts:106</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="canmove"><span>can<wbr/>Move</span><a href="#canmove" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="canmove-1"><span class="tsd-kind-call-signature">canMove</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">ignoreDisableTags</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#canmove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Checks if the pokemon is active, if the move is usable, and that the move is targeting something.</p>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">ignoreDisableTags</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p><code>true</code> to not check if the move is disabled</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if all the checks pass</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L92">src/phases/move-phase.ts:92</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="chargemove"><code class="tsd-tag">Protected</code><span>charge<wbr/>Move</span><a href="#chargemove" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="chargemove-1"><span class="tsd-kind-call-signature">chargeMove</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#chargemove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queue a MoveChargePhase for this phase's invoked move.
|
||
Does NOT consume PP (occurs on the 2nd strike of the move)</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L441">src/phases/move-phase.ts:441</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="end"><span>end</span><a href="#end" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="end-1"><span class="tsd-kind-call-signature">end</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#end-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queue a MoveEndPhase and then end this phase.</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Overrides <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#end">end</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L470">src/phases/move-phase.ts:470</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="fail"><span>fail</span><a href="#fail" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="fail-1"><span class="tsd-kind-call-signature">fail</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#fail-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Signifies the current move should fail but still use PP</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L101">src/phases/move-phase.ts:101</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="failmove"><code class="tsd-tag">Protected</code><span>fail<wbr/>Move</span><a href="#failmove" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="failmove-1"><span class="tsd-kind-call-signature">failMove</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">showText</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">failedDueToWeather</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">failedDueToTerrain</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#failmove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Fail the move currently being used.
|
||
Handles failure messages, pushing to move history, etc.</p>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">showText</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether to show move text when failing the move.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">failedDueToWeather</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Whether the move failed due to weather (default <code>false</code>)</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">failedDueToTerrain</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Whether the move failed due to terrain (default <code>false</code>)</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L388">src/phases/move-phase.ts:388</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getactivetargetpokemon"><span>get<wbr/>Active<wbr/>Target<wbr/>Pokemon</span><a href="#getactivetargetpokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getactivetargetpokemon-1"><span class="tsd-kind-call-signature">getActiveTargetPokemon</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">[]</span><a href="#getactivetargetpokemon-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L193">src/phases/move-phase.ts:193</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getppincreasefrompressure"><span>get<wbr/>Pp<wbr/>Increase<wbr/>From<wbr/>Pressure</span><a href="#getppincreasefrompressure" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getppincreasefrompressure-1"><span class="tsd-kind-call-signature">getPpIncreaseFromPressure</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">targets</span><span class="tsd-signature-symbol">:</span> <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><a href="#getppincreasefrompressure-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Applies PP increasing abilities (currently only <a href="../enums/enums_ability-id.AbilityId.html#pressure" class="tsd-kind-enum-member"><code>Pressure</code></a>) if they exist on the target pokemon.
|
||
Note that targets must include only active pokemon.</p>
|
||
<p>TODO: This hardcodes the PP increase at 1 per opponent, rather than deferring to the ability.</p>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">targets</span>: <a href="field_pokemon.Pokemon.html" class="tsd-signature-type tsd-kind-class">Pokemon</a><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L487">src/phases/move-phase.ts:487</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="handlepremovefailures"><code class="tsd-tag">Protected</code><span>handle<wbr/>Pre<wbr/>Move<wbr/>Failures</span><a href="#handlepremovefailures" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="handlepremovefailures-1"><span class="tsd-kind-call-signature">handlePreMoveFailures</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#handlepremovefailures-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Handles the case where the move was cancelled or failed:</p>
|
||
<ul>
|
||
<li>Uses PP if the move failed (not cancelled) and should use PP (failed moves are not affected by <a href="../enums/enums_ability-id.AbilityId.html#pressure" class="tsd-kind-enum-member"><code>Pressure</code></a>)</li>
|
||
<li>Records a cancelled OR failed move in move history, so abilities like <a href="../enums/enums_ability-id.AbilityId.html#truant" class="tsd-kind-enum-member"><code>Truant</code></a> don't trigger on the
|
||
next turn and soft-lock.</li>
|
||
<li>Lapses <code>MOVE_EFFECT</code> tags:
|
||
<ul>
|
||
<li>
|
||
<p>Semi-invulnerable battler tags (Fly/Dive/etc.) are intended to lapse on move effects, but also need
|
||
to lapse on move failure/cancellation.</p>
|
||
<p>TODO: ...this seems weird.</p>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li>Lapses <code>AFTER_MOVE</code> tags:
|
||
<ul>
|
||
<li>This handles the effects of <a href="../enums/enums_move-id.MoveId.html#substitute" class="tsd-kind-enum-member"><code>Substitute</code></a></li>
|
||
</ul>
|
||
</li>
|
||
<li>Removes the second turn of charge moves</li>
|
||
</ul>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L617">src/phases/move-phase.ts:617</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="hideenemytrainer"><span>hide<wbr/>Enemy<wbr/>Trainer</span><a href="#hideenemytrainer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="hideenemytrainer-1"><span class="tsd-kind-call-signature">hideEnemyTrainer</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#hideenemytrainer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#hideenemytrainer">hideEnemyTrainer</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/battle-phase.ts#L37">src/phases/battle-phase.ts:37</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="is"><span>is</span><a href="#is" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="is-1"><span class="tsd-kind-call-signature">is</span><span class="tsd-signature-symbol"><</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#isk">K</a> <span class="tsd-signature-keyword">extends</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ActivatePriorityQueuePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"AddEnemyBuffModifierPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"AttemptCapturePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"AttemptRunPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"BattleEndPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"BerryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CheckInterludePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CheckStatusEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CheckSwitchPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CommandPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CommonAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"DamageAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EggHatchPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EggLapsePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EggSummaryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EndCardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EndEvolutionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EnemyCommandPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EvolutionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ExpPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"FaintPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"FormChangePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"GameOverPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"GameOverModifierRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"HideAbilityPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"HidePartyExpBarPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LearnMovePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LevelCapPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LevelUpPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LoadMoveAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LoginPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MessagePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ModifierRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoneyRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveChargePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveEndPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveHeaderPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MovePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterOptionSelectedPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterBattlePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterBattleStartCleanupPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterRewardsPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostMysteryEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"NewBattlePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"NewBiomeEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"NextEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ObtainStatusEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PartyExpPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PartyHealPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PokemonAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PokemonHealPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PokemonTransformPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PositionalTagPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostGameOverPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostSummonPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostTurnStatusEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"QuietFormChangePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ReloadSessionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ResetStatusPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ReturnPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"RevivalBlessingPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"RibbonModifierRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ScanIvsPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectBiomePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectChallengePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectGenderPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectModifierPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectStarterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectTargetPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShinySparklePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShowAbilityPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShowPartyExpBarPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShowTrainerPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"StatStageChangePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SummonMissingPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SummonPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SwitchBiomePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SwitchPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SwitchSummonPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TeraPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TitlePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ToggleDoublePositionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TrainerVictoryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TurnEndPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TurnInitPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TurnStartPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"UnavailablePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"UnlockPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"VictoryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"WeatherEffectPhase"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">phase</span><span class="tsd-signature-symbol">:</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="phase.Phase.html#isk">K</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-kind-parameter">this</span> <span class="tsd-signature-keyword">is</span> <a href="../types/_types_phase-types.PhaseMap.html" class="tsd-signature-type tsd-kind-type-alias">PhaseMap</a><span class="tsd-signature-symbol">[</span><a class="tsd-signature-type tsd-kind-type-parameter" href="phase.Phase.html#isk">K</a><span class="tsd-signature-symbol">]</span><a href="#is-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Check if the phase is of the given type without requiring <code>instanceof</code>.</p>
|
||
</div><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span id="isk"><span class="tsd-kind-type-parameter">K</span> <span class="tsd-signature-keyword">extends</span> <br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ActivatePriorityQueuePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"AddEnemyBuffModifierPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"AttemptCapturePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"AttemptRunPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"BattleEndPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"BerryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CheckInterludePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CheckStatusEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CheckSwitchPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CommandPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"CommonAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"DamageAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EggHatchPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EggLapsePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EggSummaryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EndCardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EndEvolutionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EnemyCommandPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"EvolutionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ExpPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"FaintPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"FormChangePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"GameOverPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"GameOverModifierRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"HideAbilityPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"HidePartyExpBarPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LearnMovePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LevelCapPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LevelUpPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LoadMoveAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"LoginPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MessagePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ModifierRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoneyRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveChargePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveEndPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MoveHeaderPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MovePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterOptionSelectedPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterBattlePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterBattleStartCleanupPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"MysteryEncounterRewardsPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostMysteryEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"NewBattlePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"NewBiomeEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"NextEncounterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ObtainStatusEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PartyExpPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PartyHealPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PokemonAnimPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PokemonHealPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PokemonTransformPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PositionalTagPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostGameOverPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostSummonPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"PostTurnStatusEffectPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"QuietFormChangePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ReloadSessionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ResetStatusPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ReturnPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"RevivalBlessingPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"RibbonModifierRewardPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ScanIvsPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectBiomePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectChallengePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectGenderPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectModifierPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectStarterPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SelectTargetPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShinySparklePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShowAbilityPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShowPartyExpBarPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ShowTrainerPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"StatStageChangePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SummonMissingPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SummonPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SwitchBiomePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SwitchPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"SwitchSummonPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TeraPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TitlePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"ToggleDoublePositionPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TrainerVictoryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TurnEndPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TurnInitPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"TurnStartPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"UnavailablePhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"UnlockPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"VictoryPhase"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"WeatherEffectPhase"</span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">phase</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="phase.Phase.html#isk">K</a></span><div class="tsd-comment tsd-typography"><p>The string name of the phase to check.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-kind-parameter">this</span> <span class="tsd-signature-keyword">is</span> <a href="../types/_types_phase-types.PhaseMap.html" class="tsd-signature-type tsd-kind-type-alias">PhaseMap</a><span class="tsd-signature-symbol">[</span><a class="tsd-signature-type tsd-kind-type-parameter" href="phase.Phase.html#isk">K</a><span class="tsd-signature-symbol">]</span></h4><p>Whether this phase is of the provided type.</p>
|
||
<div class="tsd-comment tsd-typography"><div class="tsd-tag-remarks"><h4 class="tsd-anchor-link" id="remarks">Remarks<a href="#remarks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>This does not check for subclasses! It only checks if the phase is <em>exactly</em> the given type.
|
||
This method exists to avoid circular import issues, as using <code>instanceof</code> would require importing each phase.</p>
|
||
</div></div><aside class="tsd-sources"><p>Inherited from <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#is">is</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phase.ts#L30">src/phase.ts:30</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="isforcedlast"><span>is<wbr/>Forced<wbr/>Last</span><a href="#isforcedlast" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="isforcedlast-1"><span class="tsd-kind-call-signature">isForcedLast</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#isforcedlast-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Shows whether the current move has been forced to the end of the turn
|
||
Needed for speed order, see <a href="../enums/enums_move-id.MoveId.html#quash" class="tsd-kind-enum-member"><code>MoveId.QUASH</code></a></p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L114">src/phases/move-phase.ts:114</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="lapsepremoveandmovetags"><code class="tsd-tag">Protected</code><span>lapse<wbr/>Pre<wbr/>Move<wbr/>And<wbr/>Move<wbr/>Tags</span><a href="#lapsepremoveandmovetags" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="lapsepremoveandmovetags-1"><span class="tsd-kind-call-signature">lapsePreMoveAndMoveTags</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#lapsepremoveandmovetags-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Lapse <a href="../enums/enums_battler-tag-lapse-type.BattlerTagLapseType.html#pre_move" class="tsd-kind-enum-member"><code>PRE_MOVE</code></a> tags that trigger before a move is used, regardless of whether or not it failed.
|
||
Also lapse <a href="../enums/enums_battler-tag-lapse-type.BattlerTagLapseType.html#move" class="tsd-kind-enum-member"><code>MOVE</code></a> tags if the move is successful and not called indirectly.</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L281">src/phases/move-phase.ts:281</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="resolvecounterattacktarget"><code class="tsd-tag">Protected</code><span>resolve<wbr/>Counter<wbr/>Attack<wbr/>Target</span><a href="#resolvecounterattacktarget" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="resolvecounterattacktarget-1"><span class="tsd-kind-call-signature">resolveCounterAttackTarget</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#resolvecounterattacktarget-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Update the targets of any counter-attacking moves with <code>[</code><a href="../enums/enums_battler-index.BattlerIndex.html#attacker" class="tsd-kind-enum-member"><code>BattlerIndex.ATTACKER</code></a><code>]</code> set
|
||
to reflect the actual battler index of the user's last attacker.</p>
|
||
<p>If there is no last attacker or they are no longer on the field, a message is displayed and the
|
||
move is marked for failure.</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-todo"><h4 class="tsd-anchor-link" id="todo">Todo<a href="#todo" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>Make this a feature of the move rather than basing logic on <a href="../enums/enums_battler-index.BattlerIndex.html#attacker" class="tsd-kind-enum-member"><code>BattlerIndex.ATTACKER</code></a></p>
|
||
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L576">src/phases/move-phase.ts:576</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="resolvefinalpremovecancellationchecks"><code class="tsd-tag">Protected</code><span>resolve<wbr/>Final<wbr/>Pre<wbr/>Move<wbr/>Cancellation<wbr/>Checks</span><a href="#resolvefinalpremovecancellationchecks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="resolvefinalpremovecancellationchecks-1"><span class="tsd-kind-call-signature">resolveFinalPreMoveCancellationChecks</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#resolvefinalpremovecancellationchecks-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Check for cancellation edge cases - no targets remaining, or <a href="../enums/enums_move-id.MoveId.html#none" class="tsd-kind-enum-member"><code>MoveId.NONE</code></a> is in the queue</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L179">src/phases/move-phase.ts:179</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="resolvepremovestatuseffects"><code class="tsd-tag">Protected</code><span>resolve<wbr/>Pre<wbr/>Move<wbr/>Status<wbr/>Effects</span><a href="#resolvepremovestatuseffects" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="resolvepremovestatuseffects-1"><span class="tsd-kind-call-signature">resolvePreMoveStatusEffects</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#resolvepremovestatuseffects-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Handles <a href="../enums/enums_status-effect.StatusEffect.html#sleep" class="tsd-kind-enum-member">Sleep</a>/<a href="../enums/enums_status-effect.StatusEffect.html#paralysis" class="tsd-kind-enum-member">Paralysis</a>/<a href="../enums/enums_status-effect.StatusEffect.html#freeze" class="tsd-kind-enum-member">Freeze</a> rolls and side effects.</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L200">src/phases/move-phase.ts:200</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="resolveredirecttarget"><code class="tsd-tag">Protected</code><span>resolve<wbr/>Redirect<wbr/>Target</span><a href="#resolveredirecttarget" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="resolveredirecttarget-1"><span class="tsd-kind-call-signature">resolveRedirectTarget</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#resolveredirecttarget-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Modifies <code>this.targets</code> in place, based upon:</p>
|
||
<ul>
|
||
<li>Move redirection abilities, effects, etc.</li>
|
||
<li>Counterattacks, which pass a special value into the <code>targets</code> constructor param (<code>[</code><a href="../enums/enums_battler-index.BattlerIndex.html#attacker" class="tsd-kind-enum-member"><code>BattlerIndex.ATTACKER</code></a><code>]</code>).</li>
|
||
</ul>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L499">src/phases/move-phase.ts:499</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="showenemytrainer"><span>show<wbr/>Enemy<wbr/>Trainer</span><a href="#showenemytrainer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="showenemytrainer-1"><span class="tsd-kind-call-signature">showEnemyTrainer</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">trainerSlot</span><span class="tsd-signature-symbol">?:</span> <a href="../enums/enums_trainer-slot.TrainerSlot.html" class="tsd-signature-type tsd-kind-enum">TrainerSlot</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#showenemytrainer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">trainerSlot</span>: <a href="../enums/enums_trainer-slot.TrainerSlot.html" class="tsd-signature-type tsd-kind-enum">TrainerSlot</a><span class="tsd-signature-symbol"> = TrainerSlot.NONE</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#showenemytrainer">showEnemyTrainer</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/battle-phase.ts#L6">src/phases/battle-phase.ts:6</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showfailedtext"><span>show<wbr/>Failed<wbr/>Text</span><a href="#showfailedtext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="showfailedtext-1"><span class="tsd-kind-call-signature">showFailedText</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">failedText</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#showfailedtext-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Display the text for a move failing to execute.</p>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">failedText</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ...</span></span><div class="tsd-comment tsd-typography"><p>The failure text to display; defaults to <code>"battle:attackFailed"</code> locale key
|
||
("But it failed!" in english)</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L679">src/phases/move-phase.ts:679</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="showmovetext"><span>show<wbr/>Move<wbr/>Text</span><a href="#showmovetext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="showmovetext-1"><span class="tsd-kind-call-signature">showMoveText</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#showmovetext-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Displays the move's usage text to the player as applicable for the move being used.</p>
|
||
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L651">src/phases/move-phase.ts:651</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="start"><span>start</span><a href="#start" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="start-1"><span class="tsd-kind-call-signature">start</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#start-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Overrides <a href="phases_battle-phase.BattlePhase.html">BattlePhase</a>.<a href="phases_battle-phase.BattlePhase.html#start">start</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L118">src/phases/move-phase.ts:118</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="usemove"><code class="tsd-tag">Protected</code><span>use<wbr/>Move</span><a href="#usemove" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class=""><div class="tsd-signature tsd-anchor-link" id="usemove-1"><span class="tsd-kind-call-signature">useMove</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#usemove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/79576ad117a9674a5ab47be2306a1e67ce267e5a/src/phases/move-phase.ts#L290">src/phases/move-phase.ts:290</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#_move" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>move</span></a><a href="#_pokemon" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>pokemon</span></a><a href="#_targets" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>targets</span></a><a href="#cancelled" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cancelled</span></a><a href="#failed" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>failed</span></a><a href="#forcedlast" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>forced<wbr/>Last</span></a><a href="#phasename"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>phase<wbr/>Name</span></a><a href="#usemode"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>use<wbr/>Mode</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Accessors</summary><div><a href="#move"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>move</span></a><a href="#pokemon"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>pokemon</span></a><a href="#targets"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>targets</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#cancel"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a><a href="#canmove"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>can<wbr/>Move</span></a><a href="#chargemove" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>charge<wbr/>Move</span></a><a href="#end"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>end</span></a><a href="#fail"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fail</span></a><a href="#failmove" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fail<wbr/>Move</span></a><a href="#getactivetargetpokemon"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Active<wbr/>Target<wbr/>Pokemon</span></a><a href="#getppincreasefrompressure"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Pp<wbr/>Increase<wbr/>From<wbr/>Pressure</span></a><a href="#handlepremovefailures" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>handle<wbr/>Pre<wbr/>Move<wbr/>Failures</span></a><a href="#hideenemytrainer" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hide<wbr/>Enemy<wbr/>Trainer</span></a><a href="#is" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is</span></a><a href="#isforcedlast"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Forced<wbr/>Last</span></a><a href="#lapsepremoveandmovetags" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>lapse<wbr/>Pre<wbr/>Move<wbr/>And<wbr/>Move<wbr/>Tags</span></a><a href="#resolvecounterattacktarget" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Counter<wbr/>Attack<wbr/>Target</span></a><a href="#resolvefinalpremovecancellationchecks" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Final<wbr/>Pre<wbr/>Move<wbr/>Cancellation<wbr/>Checks</span></a><a href="#resolvepremovestatuseffects" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Pre<wbr/>Move<wbr/>Status<wbr/>Effects</span></a><a href="#resolveredirecttarget" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Redirect<wbr/>Target</span></a><a href="#showenemytrainer" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Enemy<wbr/>Trainer</span></a><a href="#showfailedtext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Failed<wbr/>Text</span></a><a href="#showmovetext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Move<wbr/>Text</span></a><a href="#start"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>start</span></a><a href="#usemove" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>use<wbr/>Move</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">pokemon-rogue-battle</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|