pokerogue/main/classes/phases_move_phase.MovePhase...

83 lines
69 KiB
HTML
Raw Permalink Normal View History

2024-11-18 18:42:56 +00:00
<!DOCTYPE html><html class="default" lang="en"><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></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">pokemon-rogue-battle</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">pokemon-rogue-battle</a></li><li><a href="../modules/phases_move_phase.html">phases/move-phase</a></li><li><a href="phases_move_phase.MovePhase.html">MovePhase</a></li></ul><h1>Class MovePhase</h1></div><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a href="../hierarchy.html#phases/move-phase.MovePhase">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="phases_battle_phase.BattlePhase.html" class="tsd-signature-type tsd-kind-class">BattlePhase</a><ul class="tsd-hierarchy"><li><span class="target">MovePhase</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L51">src/phases/move-phase.ts:51</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"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> 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="phases_move_phase.MovePhase.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2024-10-26 22:31:27 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="phases_move_phase.MovePhase.html#_move" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_move</span></a>
<a href="phases_move_phase.MovePhase.html#_pokemon" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_pokemon</span></a>
<a href="phases_move_phase.MovePhase.html#_targets" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_targets</span></a>
<a href="phases_move_phase.MovePhase.html#cancelled" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cancelled</span></a>
2024-09-01 23:17:02 +01:00
<a href="phases_move_phase.MovePhase.html#failed" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>failed</span></a>
<a href="phases_move_phase.MovePhase.html#followUp" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>follow<wbr/>Up</span></a>
<a href="phases_move_phase.MovePhase.html#ignorePp" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ignore<wbr/>Pp</span></a>
<a href="phases_move_phase.MovePhase.html#scene" class="tsd-index-link tsd-is-protected tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>scene</span></a>
2024-10-26 22:31:27 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="phases_move_phase.MovePhase.html#move" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>move</span></a>
<a href="phases_move_phase.MovePhase.html#pokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>pokemon</span></a>
<a href="phases_move_phase.MovePhase.html#targets" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>targets</span></a>
2024-09-01 23:17:02 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="phases_move_phase.MovePhase.html#canMove" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>can<wbr/>Move</span></a>
<a href="phases_move_phase.MovePhase.html#cancel" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cancel</span></a>
2024-10-26 22:31:27 +01:00
<a href="phases_move_phase.MovePhase.html#chargeMove" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>charge<wbr/>Move</span></a>
2024-09-01 23:17:02 +01:00
<a href="phases_move_phase.MovePhase.html#end" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>end</span></a>
<a href="phases_move_phase.MovePhase.html#fail" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fail</span></a>
2024-10-26 22:31:27 +01:00
<a href="phases_move_phase.MovePhase.html#getActiveTargetPokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Active<wbr/>Target<wbr/>Pokemon</span></a>
<a href="phases_move_phase.MovePhase.html#getPpIncreaseFromPressure" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Pp<wbr/>Increase<wbr/>From<wbr/>Pressure</span></a>
<a href="phases_move_phase.MovePhase.html#handlePreMoveFailures" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>handle<wbr/>Pre<wbr/>Move<wbr/>Failures</span></a>
2024-09-01 23:17:02 +01:00
<a href="phases_move_phase.MovePhase.html#hideEnemyTrainer" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hide<wbr/>Enemy<wbr/>Trainer</span></a>
2024-10-26 22:31:27 +01:00
<a href="phases_move_phase.MovePhase.html#lapsePreMoveAndMoveTags" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><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="phases_move_phase.MovePhase.html#resolveCounterAttackTarget" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Counter<wbr/>Attack<wbr/>Target</span></a>
<a href="phases_move_phase.MovePhase.html#resolveFinalPreMoveCancellationChecks" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><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="phases_move_phase.MovePhase.html#resolvePreMoveStatusEffects" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Pre<wbr/>Move<wbr/>Status<wbr/>Effects</span></a>
<a href="phases_move_phase.MovePhase.html#resolveRedirectTarget" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resolve<wbr/>Redirect<wbr/>Target</span></a>
2024-09-01 23:17:02 +01:00
<a href="phases_move_phase.MovePhase.html#showEnemyTrainer" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Enemy<wbr/>Trainer</span></a>
2024-10-26 22:31:27 +01:00
<a href="phases_move_phase.MovePhase.html#showFailedText" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Failed<wbr/>Text</span></a>
<a href="phases_move_phase.MovePhase.html#showMoveText" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show<wbr/>Move<wbr/>Text</span></a>
2024-09-01 23:17:02 +01:00
<a href="phases_move_phase.MovePhase.html#start" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>start</span></a>
2024-10-26 22:31:27 +01:00
<a href="phases_move_phase.MovePhase.html#useMove" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><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"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_MovePhase" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Move<wbr/>Phase</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span>, <span class="tsd-kind-parameter">pokemon</span>, <span class="tsd-kind-parameter">targets</span>, <span class="tsd-kind-parameter">move</span>, <span class="tsd-kind-parameter">followUp</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">ignorePp</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="phases_move_phase.MovePhase.html" class="tsd-signature-type tsd-kind-class">MovePhase</a><a href="#constructor.new_MovePhase" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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">scene</span>: <a href="battle_scene.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li><li><span><span class="tsd-kind-parameter">targets</span>: <a href="../enums/battle.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="field_pokemon.PokemonMove.html" class="tsd-signature-type tsd-kind-class">PokemonMove</a></span></li><li><span><span class="tsd-kind-parameter">followUp</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Indicates that the move being uses is a &quot;follow-up&quot; - for example, a move being used by Metronome or Dancer.
Follow-ups bypass a few failure conditions, including flinches, sleep/paralysis/freeze and volatile status checks, etc.</p>
2024-11-18 18:42:56 +00:00
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">ignorePp</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="phases_move_phase.MovePhase.html" 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L88">src/phases/move-phase.ts:88</a></li></ul></aside></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"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member tsd-is-protected"><a id="_move" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Protected</code><span>_move</span><a href="#_move" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><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="field_pokemon.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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L53">src/phases/move-phase.ts:53</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="_pokemon" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Protected</code><span>_pokemon</span><a href="#_pokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><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.default.html" class="tsd-signature-type tsd-kind-class">default</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L52">src/phases/move-phase.ts:52</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="_targets" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Protected</code><span>_targets</span><a href="#_targets" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><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/battle.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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L54">src/phases/move-phase.ts:54</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="cancelled" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><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">
2024-10-26 22:31:27 +01:00
</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>
2024-11-18 18:42:56 +00:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L103">src/phases/move-phase.ts:103</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="cancel" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>cancel</span><a href="#cancel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="cancel.cancel-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">cancel</span><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><a href="#cancel.cancel-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L113">src/phases/move-phase.ts:113</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="chargeMove" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="chargeMove.chargeMove-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">charge<wbr/>Move</span><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><a href="#chargeMove.chargeMove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queues a <a href="phases_move_charge_phase.MoveChargePhase.html" class="tsd-kind-class"><code>MoveChargePhase</code></a> for this phase's invoked 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L367">src/phases/move-phase.ts:367</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="end" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>end</span><a href="#end" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="end.end-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">end</span><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><a href="#end.end-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queues a <a href="phases_move_end_phase.MoveEndPhase.html" class="tsd-kind-class"><code>MoveEndPhase</code></a> if the move wasn't a <a href="phases_move_phase.MovePhase.html#followUp" class="tsd-kind-property"><code>followUp</code></a> and <a href="phases_move_phase.MovePhase.html#canMove" class="tsd-kind-method"><code>()</code></a> returns <code>true</code>,
2024-10-26 22:31:27 +01:00
then ends the phase.</p>
2024-11-18 18:42:56 +00:00
</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L393">src/phases/move-phase.ts:393</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fail" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>fail</span><a href="#fail" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fail.fail-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">fail</span><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><a href="#fail.fail-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L108">src/phases/move-phase.ts:108</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getActiveTargetPokemon" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getActiveTargetPokemon.getActiveTargetPokemon-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Active<wbr/>Target<wbr/>Pokemon</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">[]</span><a href="#getActiveTargetPokemon.getActiveTargetPokemon-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L182">src/phases/move-phase.ts:182</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getPpIncreaseFromPressure" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getPpIncreaseFromPressure.getPpIncreaseFromPressure-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Pp<wbr/>Increase<wbr/>From<wbr/>Pressure</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">targets</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#getPpIncreaseFromPressure.getPpIncreaseFromPressure-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Applies PP increasing abilities (currently only <a href="../enums/enums_abilities.Abilities.html#PRESSURE" class="tsd-kind-enum-member">Pressure</a>) if they exist on the target pokemon.
2024-10-26 22:31:27 +01:00
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>
2024-11-18 18:42:56 +00:00
</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.default.html" class="tsd-signature-type tsd-kind-class">default</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L407">src/phases/move-phase.ts:407</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="handlePreMoveFailures" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="handlePreMoveFailures.handlePreMoveFailures-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">handle<wbr/>Pre<wbr/>Move<wbr/>Failures</span><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><a href="#handlePreMoveFailures.handlePreMoveFailures-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Handles the case where the move was cancelled or failed:</p>
2024-10-26 22:31:27 +01:00
<ul>
<li>Uses PP if the move failed (not cancelled) and should use PP (failed moves are not affected by <a href="../enums/enums_abilities.Abilities.html#PRESSURE" class="tsd-kind-enum-member">Pressure</a>)</li>
<li>Records a cancelled OR failed move in move history, so abilities like <a href="../enums/enums_abilities.Abilities.html#TRUANT" class="tsd-kind-enum-member">Truant</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_moves.Moves.html#SUBSTITUTE" class="tsd-kind-enum-member">Substitute</a></li>
</ul>
</li>
<li>Removes the second turn of charge moves</li>
</ul>
2024-11-18 18:42:56 +00:00
</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L503">src/phases/move-phase.ts:503</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="hideEnemyTrainer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>hide<wbr/>Enemy<wbr/>Trainer</span><a href="#hideEnemyTrainer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="hideEnemyTrainer.hideEnemyTrainer-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">hide<wbr/>Enemy<wbr/>Trainer</span><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><a href="#hideEnemyTrainer.hideEnemyTrainer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/battle-phase.ts#L37">src/phases/battle-phase.ts:37</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="lapsePreMoveAndMoveTags" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="lapsePreMoveAndMoveTags.lapsePreMoveAndMoveTags-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">lapse<wbr/>Pre<wbr/>Move<wbr/>And<wbr/>Move<wbr/>Tags</span><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><a href="#lapsePreMoveAndMoveTags.lapsePreMoveAndMoveTags-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Lapse <a href="../enums/data_battler_tags.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.
2024-10-26 22:31:27 +01:00
Also lapse <a href="../enums/data_battler_tags.BattlerTagLapseType.html#MOVE" class="tsd-kind-enum-member"><code>MOVE</code></a> tags if the move should be successful.</p>
2024-11-18 18:42:56 +00:00
</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L236">src/phases/move-phase.ts:236</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="resolveCounterAttackTarget" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="resolveCounterAttackTarget.resolveCounterAttackTarget-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">resolve<wbr/>Counter<wbr/>Attack<wbr/>Target</span><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><a href="#resolveCounterAttackTarget.resolveCounterAttackTarget-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Counter-attacking moves pass in <code>[</code><a href="../enums/battle.BattlerIndex.html#ATTACKER" class="tsd-kind-enum-member"><code>BattlerIndex.ATTACKER</code></a><code>]</code> into the constructor's <code>targets</code> param.
2024-10-26 22:31:27 +01:00
This function modifies <code>this.targets</code> 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>
2024-11-18 18:42:56 +00:00
</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L466">src/phases/move-phase.ts:466</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="resolveFinalPreMoveCancellationChecks" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="resolveFinalPreMoveCancellationChecks.resolveFinalPreMoveCancellationChecks-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">resolve<wbr/>Final<wbr/>Pre<wbr/>Move<wbr/>Cancellation<wbr/>Checks</span><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><a href="#resolveFinalPreMoveCancellationChecks.resolveFinalPreMoveCancellationChecks-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Check for cancellation edge cases - no targets remaining, or <a href="../enums/enums_moves.Moves.html#NONE" class="tsd-kind-enum-member"><code>Moves.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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L171">src/phases/move-phase.ts:171</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="resolvePreMoveStatusEffects" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="resolvePreMoveStatusEffects.resolvePreMoveStatusEffects-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">resolve<wbr/>Pre<wbr/>Move<wbr/>Status<wbr/>Effects</span><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><a href="#resolvePreMoveStatusEffects.resolvePreMoveStatusEffects-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L189">src/phases/move-phase.ts:189</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="resolveRedirectTarget" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="resolveRedirectTarget.resolveRedirectTarget-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">resolve<wbr/>Redirect<wbr/>Target</span><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><a href="#resolveRedirectTarget.resolveRedirectTarget-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Modifies <code>this.targets</code> in place, based upon:</p>
2024-10-26 22:31:27 +01:00
<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/battle.BattlerIndex.html#ATTACKER" class="tsd-kind-enum-member"><code>BattlerIndex.ATTACKER</code></a><code>]</code>).</li>
</ul>
2024-11-18 18:42:56 +00:00
</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L417">src/phases/move-phase.ts:417</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="showEnemyTrainer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>show<wbr/>Enemy<wbr/>Trainer</span><a href="#showEnemyTrainer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="showEnemyTrainer.showEnemyTrainer-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">show<wbr/>Enemy<wbr/>Trainer</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">trainerSlot</span><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><a href="#showEnemyTrainer.showEnemyTrainer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/data_trainer_config.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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/battle-phase.ts#L10">src/phases/battle-phase.ts:10</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="showFailedText" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Protected</code><span>show<wbr/>Failed<wbr/>Text</span><a href="#showFailedText" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="showFailedText.showFailedText-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">show<wbr/>Failed<wbr/>Text</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">failedText</span><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><a href="#showFailedText.showFailedText-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">failedText</span>: <span class="tsd-signature-type">string</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L548">src/phases/move-phase.ts:548</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="showMoveText" class="tsd-anchor"></a><h3 class="tsd-anchor-link
2024-10-26 22:31:27 +01:00
the pokemon is on a recharge turn (ie: <a href="../enums/enums_moves.Moves.html#HYPER_BEAM" class="tsd-kind-enum-member">Hyper Beam</a>), or a 2-turn move was interrupted (ie: <a href="../enums/enums_moves.Moves.html#FLY" class="tsd-kind-enum-member">Fly</a>).</p>
2024-11-18 18:42:56 +00:00
</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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L532">src/phases/move-phase.ts:532</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="start" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>start</span><a href="#start" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="start.start-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">start</span><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><a href="#start.start-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L117">src/phases/move-phase.ts:117</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="useMove" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><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"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="useMove.useMove-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">use<wbr/>Move</span><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><a href="#useMove.useMove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li 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/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/phases/move-phase.ts#L245">src/phases/move-phase.ts:245</a></li></ul></aside></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"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>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-c