mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-04 15:34:16 +01:00
126 lines
91 KiB
HTML
126 lines
91 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>MoveEffectPhase | 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-effect-phase.html">phases/move-effect-phase</a></li><li><a href="" aria-current="page">MoveEffectPhase</a></li></ul><h1>Class MoveEffectPhase</h1></div><section class="tsd-panel tsd-hierarchy" data-refl="44617"><h4>Hierarchy (<a href="../hierarchy.html#phases/move-effect-phase.MoveEffectPhase">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="phases_pokemon-phase.PokemonPhase.html" class="tsd-signature-type tsd-kind-class">PokemonPhase</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">MoveEffectPhase</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L84">src/phases/move-effect-phase.ts:84</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="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></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="#battlerindex" class="tsd-index-link tsd-is-protected tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>battler<wbr/>Index</span></a>
|
||
<a href="#fieldindex" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>field<wbr/>Index</span></a>
|
||
<a href="#move" 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>move</span></a>
|
||
<a href="#player" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>player</span></a>
|
||
<a href="#reflected" 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>reflected</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>targets</span></a>
|
||
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#applyhelditemflinchcheck" 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>apply<wbr/>Held<wbr/>Item<wbr/>Flinch<wbr/>Check</span></a>
|
||
<a href="#applymove" 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>apply<wbr/>Move</span></a>
|
||
<a href="#applymovedamage" 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>apply<wbr/>Move<wbr/>Damage</span></a>
|
||
<a href="#applymoveeffects" 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>apply<wbr/>Move<wbr/>Effects</span></a>
|
||
<a href="#applyongethitabeffects" 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>apply<wbr/>On<wbr/>Get<wbr/>Hit<wbr/>Ab<wbr/>Effects</span></a>
|
||
<a href="#applyontargeteffects" 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>apply<wbr/>On<wbr/>Target<wbr/>Effects</span></a>
|
||
<a href="#checkbypassaccandinvuln" 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>check<wbr/>Bypass<wbr/>Acc<wbr/>And<wbr/>Invuln</span></a>
|
||
<a href="#checkbypasssemiinvuln" 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>check<wbr/>Bypass<wbr/>Semi<wbr/>Invuln</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="#executeforall" 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>execute<wbr/>For<wbr/>All</span></a>
|
||
<a href="#getfirsttarget" 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/>First<wbr/>Target</span></a>
|
||
<a href="#getnewhitphase" 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>get<wbr/>New<wbr/>Hit<wbr/>Phase</span></a>
|
||
<a href="#getpokemon" 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>get<wbr/>Pokemon</span></a>
|
||
<a href="#gettargets" 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/>Targets</span></a>
|
||
<a href="#getuserpokemon" 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/>User<wbr/>Pokemon</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="#hitcheck" 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>hit<wbr/>Check</span></a>
|
||
<a href="#onfainttarget" 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>on<wbr/>Faint<wbr/>Target</span></a>
|
||
<a href="#queuehitresultmessage" 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>queue<wbr/>Hit<wbr/>Result<wbr/>Message</span></a>
|
||
<a href="#removetarget" 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>remove<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="#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="#stopmultihit" 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>stop<wbr/>Multi<wbr/>Hit</span></a>
|
||
<a href="#triggermoveeffects" 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>trigger<wbr/>Move<wbr/>Effects</span></a>
|
||
<a href="#updatesubstitutes" 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>update<wbr/>Substitutes</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="constructormoveeffectphase"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">MoveEffectPhase</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">battlerIndex</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><br/> <span class="tsd-kind-parameter">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><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">move</span><span class="tsd-signature-symbol">:</span> <a href="data_moves_move.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">reflected</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">virtual</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">MoveEffectPhase</a><a href="#constructormoveeffectphase" 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">battlerIndex</span>: <a href="../enums/battle.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</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="data_moves_move.default.html" class="tsd-signature-type tsd-kind-class">default</a></span></li><li><span><span class="tsd-kind-parameter">reflected</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 was reflected by the user due to magic coat or magic bounce</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">virtual</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 is a virtual move (i.e. called by metronome)</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">MoveEffectPhase</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Overrides <a href="phases_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L108">src/phases/move-effect-phase.ts:108</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 tsd-is-inherited"><h3 class="tsd-anchor-link" id="battlerindex"><code class="tsd-tag">Protected</code><span>battler<wbr/>Index</span><a href="#battlerindex" 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">battlerIndex</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="phases_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#battlerindex">battlerIndex</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/pokemon-phase.ts#L7">src/phases/pokemon-phase.ts:7</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="fieldindex"><span>field<wbr/>Index</span><a href="#fieldindex" 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">fieldIndex</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="phases_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#fieldindex">fieldIndex</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/pokemon-phase.ts#L9">src/phases/pokemon-phase.ts:9</a></li></ul></aside></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><div class="tsd-signature"><span class="tsd-kind-property">move</span><span class="tsd-signature-symbol">:</span> <a href="data_moves_move.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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L85">src/phases/move-effect-phase.ts:85</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="player"><span>player</span><a href="#player" 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">player</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><p>Inherited from <a href="phases_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#player">player</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/pokemon-phase.ts#L8">src/phases/pokemon-phase.ts:8</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="reflected"><code class="tsd-tag">Protected</code><span>reflected</span><a href="#reflected" 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">reflected</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L88">src/phases/move-effect-phase.ts:88</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>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/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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L87">src/phases/move-effect-phase.ts:87</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-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 tsd-is-protected"><h3 class="tsd-anchor-link" id="applyhelditemflinchcheck"><code class="tsd-tag">Protected</code><span>apply<wbr/>Held<wbr/>Item<wbr/>Flinch<wbr/>Check</span><a href="#applyhelditemflinchcheck" 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="applyhelditemflinchcheck-1"><span class="tsd-kind-call-signature">applyHeldItemFlinchCheck</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">user</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><br/> <span class="tsd-kind-parameter">target</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><br/> <span class="tsd-kind-parameter">dealsDamage</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="#applyhelditemflinchcheck-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 checking for and applying Flinches</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">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> using this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> the current target of this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">dealsDamage</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p><code>true</code> if the attempted move successfully dealt damage</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><p>a function intended to be passed into a <code>then()</code> call.</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L445">src/phases/move-effect-phase.ts:445</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="applymove"><code class="tsd-tag">Protected</code><span>apply<wbr/>Move</span><a href="#applymove" 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="applymove-1"><span class="tsd-kind-call-signature">applyMove</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">user</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><br/> <span class="tsd-kind-parameter">target</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><br/> <span class="tsd-kind-parameter">effectiveness</span><span class="tsd-signature-symbol">:</span> <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-signature-type tsd-kind-type-alias">TypeDamageMultiplier</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a><a href="#applymove-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>Apply the result of this phase's move to the given target</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">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> using this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> struck by the move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">effectiveness</span>: <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-signature-type tsd-kind-type-alias">TypeDamageMultiplier</a></span><div class="tsd-comment tsd-typography"><p>The effectiveness of the move against the target</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L938">src/phases/move-effect-phase.ts:938</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="applymovedamage"><code class="tsd-tag">Protected</code><span>apply<wbr/>Move<wbr/>Damage</span><a href="#applymovedamage" 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="applymovedamage-1"><span class="tsd-kind-call-signature">applyMoveDamage</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">user</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><br/> <span class="tsd-kind-parameter">target</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><br/> <span class="tsd-kind-parameter">effectiveness</span><span class="tsd-signature-symbol">:</span> <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-signature-type tsd-kind-type-alias">TypeDamageMultiplier</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a><a href="#applymovedamage-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>Sub-method of for <a href="#applymoveeffects" class="tsd-kind-method"><code>applyMoveEffects</code></a> that applies damage to the target.</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">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> using this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> targeted by the move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">effectiveness</span>: <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-signature-type tsd-kind-type-alias">TypeDamageMultiplier</a></span><div class="tsd-comment tsd-typography"><p>The effectiveness of the move against the target</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L804">src/phases/move-effect-phase.ts:804</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="applymoveeffects"><code class="tsd-tag">Protected</code><span>apply<wbr/>Move<wbr/>Effects</span><a href="#applymoveeffects" 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="applymoveeffects-1"><span class="tsd-kind-call-signature">applyMoveEffects</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</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> <span class="tsd-kind-parameter">effectiveness</span><span class="tsd-signature-symbol">:</span> <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-signature-type tsd-kind-type-alias">TypeDamageMultiplier</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#applymoveeffects-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 all move effects that trigger in the event of a successful hit:</p>
|
||
<ul>
|
||
<li><a href="../enums/enums_MoveEffectTrigger.MoveEffectTrigger.html#pre_apply" class="tsd-kind-enum-member"><code>PRE_APPLY</code></a> effects`</li>
|
||
<li>Applying damage to the target</li>
|
||
<li><a href="../enums/enums_MoveEffectTrigger.MoveEffectTrigger.html#post_apply" class="tsd-kind-enum-member"><code>POST_APPLY</code></a> effects</li>
|
||
<li>Invoking <a href="#applyontargeteffects" class="tsd-kind-method"><code>applyOnTargetEffects</code></a> if the move does not hit a substitute</li>
|
||
<li>Triggering form changes and emergency exit / wimp out if this is the last hit</li>
|
||
</ul>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>the <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> hit by this phase's move.</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">effectiveness</span>: <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-signature-type tsd-kind-type-alias">TypeDamageMultiplier</a></span><div class="tsd-comment tsd-typography"><p>the effectiveness of the move (as previously evaluated in <a href="#hitcheck" class="tsd-kind-method"><code>hitCheck</code></a>)</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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L769">src/phases/move-effect-phase.ts:769</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="applyongethitabeffects"><code class="tsd-tag">Protected</code><span>apply<wbr/>On<wbr/>Get<wbr/>Hit<wbr/>Ab<wbr/>Effects</span><a href="#applyongethitabeffects" 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="applyongethitabeffects-1"><span class="tsd-kind-call-signature">applyOnGetHitAbEffects</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">user</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><br/> <span class="tsd-kind-parameter">target</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><br/> <span class="tsd-kind-parameter">hitResult</span><span class="tsd-signature-symbol">:</span> <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a><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="#applyongethitabeffects-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 reactive effects that occur when a Pokémon is hit.
|
||
(i.e. Effect Spore, Disguise, Liquid Ooze, Beak Blast)</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">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> using this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p><a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> the current target of this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">hitResult</span>: <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../enums/field_pokemon.HitResult.html" class="tsd-kind-enum"><code>HitResult</code></a> of the attempted move</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><p>a <code>Promise</code> intended to be passed into a <code>then()</code> call.</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L433">src/phases/move-effect-phase.ts:433</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="applyontargeteffects"><code class="tsd-tag">Protected</code><span>apply<wbr/>On<wbr/>Target<wbr/>Effects</span><a href="#applyontargeteffects" 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="applyontargeteffects-1"><span class="tsd-kind-call-signature">applyOnTargetEffects</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">user</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><br/> <span class="tsd-kind-parameter">target</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><br/> <span class="tsd-kind-parameter">hitResult</span><span class="tsd-signature-symbol">:</span> <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">firstTarget</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="#applyontargeteffects-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 all effects aimed at the move's target.
|
||
To be used when the target is successfully and directly hit by the move.</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">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.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">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> targeted by the move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">hitResult</span>: <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../enums/field_pokemon.HitResult.html" class="tsd-kind-enum"><code>HitResult</code></a> obtained from applying the move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">firstTarget</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p><code>true</code> if the target is the first Pokemon hit by the attack</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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L966">src/phases/move-effect-phase.ts:966</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="checkbypassaccandinvuln"><span>check<wbr/>Bypass<wbr/>Acc<wbr/>And<wbr/>Invuln</span><a href="#checkbypassaccandinvuln" 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="checkbypassaccandinvuln-1"><span class="tsd-kind-call-signature">checkBypassAccAndInvuln</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span><a href="#checkbypassaccandinvuln-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 whether the move should bypass <em>both</em> the accuracy <em>and</em> semi-invulnerable states.</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">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> targeted by the invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span></h4><p><code>true</code> if the move should bypass accuracy and semi-invulnerability</p>
|
||
<p>Accuracy and semi-invulnerability can be bypassed by:</p>
|
||
<ul>
|
||
<li>An ability like Abilities.NO_GUARD | No Guard</li>
|
||
<li>A poison type using <a href="../enums/enums_moves.Moves.html#toxic" class="tsd-kind-enum-member"><code>Toxic</code></a></li>
|
||
<li>A move like <a href="../enums/enums_moves.Moves.html#lock_on" class="tsd-kind-enum-member"><code>Lock-On</code></a> or <a href="../enums/enums_moves.Moves.html#mind_reader" class="tsd-kind-enum-member"><code>Mind Reader</code></a>.</li>
|
||
<li>A field-targeted move like spikes</li>
|
||
</ul>
|
||
<p>Does <em>not</em> check against effects <a href="../enums/enums_moves.Moves.html#glaive_rush" class="tsd-kind-enum-member"><code>Glaive Rush</code></a> status (which
|
||
should not bypass semi-invulnerability), or interactions like Earthquake hitting against Dig,
|
||
(which should not bypass the accuracy check).</p>
|
||
<div class="tsd-comment tsd-typography"><div class="tsd-tag-see"><h4 class="tsd-anchor-link" id="see">See<a href="#see" 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><a href="#hitcheck" class="tsd-kind-method"><code>hitCheck</code></a></p>
|
||
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L621">src/phases/move-effect-phase.ts:621</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="checkbypasssemiinvuln"><span>check<wbr/>Bypass<wbr/>Semi<wbr/>Invuln</span><a href="#checkbypasssemiinvuln" 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="checkbypasssemiinvuln-1"><span class="tsd-kind-call-signature">checkBypassSemiInvuln</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">semiInvulnerableTag</span><span class="tsd-signature-symbol">:</span> <a href="../types/utils_common.nil.html" class="tsd-signature-type tsd-kind-type-alias">nil</a> <span class="tsd-signature-symbol">|</span> <a href="data_battler-tags.SemiInvulnerableTag.html" class="tsd-signature-type tsd-kind-class">SemiInvulnerableTag</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#checkbypasssemiinvuln-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 whether the move is able to ignore the given <code>semiInvulnerableTag</code></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">semiInvulnerableTag</span>: <a href="../types/utils_common.nil.html" class="tsd-signature-type tsd-kind-type-alias">nil</a> <span class="tsd-signature-symbol">|</span> <a href="data_battler-tags.SemiInvulnerableTag.html" class="tsd-signature-type tsd-kind-class">SemiInvulnerableTag</a></span><div class="tsd-comment tsd-typography"><p>The semiInvulnerable tag to check against</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 the move can ignore the semi-invulnerable state</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L649">src/phases/move-effect-phase.ts:649</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"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Overrides <a href="phases_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#end">end</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L397">src/phases/move-effect-phase.ts:397</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="executeforall"><span>execute<wbr/>For<wbr/>All</span><a href="#executeforall" 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="executeforall-1"><span class="tsd-kind-call-signature">executeForAll</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PokemonFunc</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#executeforall-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">func</span>: <span class="tsd-signature-type">PokemonFunc</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_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#executeforall">executeForAll</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/field-phase.ts#L8">src/phases/field-phase.ts:8</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getfirsttarget"><span>get<wbr/>First<wbr/>Target</span><a href="#getfirsttarget" 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="getfirsttarget-1"><span class="tsd-kind-call-signature">getFirstTarget</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span> <span class="tsd-signature-symbol">|</span> <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><a href="#getfirsttarget-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">undefined</span> <span class="tsd-signature-symbol">|</span> <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><p>The first target of this phase's invoked move</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L671">src/phases/move-effect-phase.ts:671</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="getnewhitphase"><code class="tsd-tag">Protected</code><span>get<wbr/>New<wbr/>Hit<wbr/>Phase</span><a href="#getnewhitphase" 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="getnewhitphase-1"><span class="tsd-kind-call-signature">getNewHitPhase</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">MoveEffectPhase</a><a href="#getnewhitphase-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="" class="tsd-signature-type tsd-kind-class">MoveEffectPhase</a></h4><p>A new <code>MoveEffectPhase</code> with the same properties as this phase</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L711">src/phases/move-effect-phase.ts:711</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="getpokemon"><span>get<wbr/>Pokemon</span><a href="#getpokemon" 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="getpokemon-1"><span class="tsd-kind-call-signature">getPokemon</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><a href="#getpokemon-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.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><aside class="tsd-sources"><p>Inherited from <a href="phases_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#getpokemon">getPokemon</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/pokemon-phase.ts#L29">src/phases/pokemon-phase.ts:29</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="gettargets"><span>get<wbr/>Targets</span><a href="#gettargets" 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="gettargets-1"><span class="tsd-kind-call-signature">getTargets</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="#gettargets-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.default.html" class="tsd-signature-type tsd-kind-class">default</a><span class="tsd-signature-symbol">[]</span></h4><p>An array of all <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> targeted by this phase's invoked move</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L666">src/phases/move-effect-phase.ts:666</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getuserpokemon"><span>get<wbr/>User<wbr/>Pokemon</span><a href="#getuserpokemon" 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="getuserpokemon-1"><span class="tsd-kind-call-signature">getUserPokemon</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a><a href="#getuserpokemon-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">null</span> <span class="tsd-signature-symbol">|</span> <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> using this phase's invoked move</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L658">src/phases/move-effect-phase.ts:658</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_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#hideenemytrainer">hideEnemyTrainer</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/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"><h3 class="tsd-anchor-link" id="hitcheck"><span>hit<wbr/>Check</span><a href="#hitcheck" 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="hitcheck-1"><span class="tsd-kind-call-signature">hitCheck</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HitCheckEntry</span><a href="#hitcheck-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>Conduct the hit check and type effectiveness for this move against the target</p>
|
||
<p>Checks occur in the following order:</p>
|
||
<ol>
|
||
<li>if the move is self-target</li>
|
||
<li>if the target is on the field</li>
|
||
<li>if the target is hidden by the effects of its commander ability</li>
|
||
<li>if the target is in an applicable semi-invulnerable state</li>
|
||
<li>if the target has an applicable protection effect</li>
|
||
<li>if the move is reflected by magic coat or magic bounce</li>
|
||
<li>type effectiveness calculation, including immunities from abilities and typing</li>
|
||
<li>if accuracy is checked, whether the roll passes the accuracy check</li>
|
||
</ol>
|
||
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> targeted by the invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">HitCheckEntry</span></h4><p>a HitCheckEntry containing the attack's <a href="../variables/enums_hit-check-result.HitCheckResult.html" class="tsd-kind-variable"><code>HitCheckResult</code></a>
|
||
and <a href="../types/data_type.TypeDamageMultiplier.html" class="tsd-kind-type-alias"><code>effectiveness</code></a> against the target.</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L512">src/phases/move-effect-phase.ts:512</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="onfainttarget"><code class="tsd-tag">Protected</code><span>on<wbr/>Faint<wbr/>Target</span><a href="#onfainttarget" 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="onfainttarget-1"><span class="tsd-kind-call-signature">onFaintTarget</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">user</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> <span class="tsd-kind-parameter">target</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#onfainttarget-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>Sub-method of <a href="#applymove" class="tsd-kind-method"><code>applyMove</code></a> that handles the event of a target fainting.</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">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> using this phase's invoked move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> that fainted</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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L900">src/phases/move-effect-phase.ts:900</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="queuehitresultmessage"><code class="tsd-tag">Protected</code><span>queue<wbr/>Hit<wbr/>Result<wbr/>Message</span><a href="#queuehitresultmessage" 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="queuehitresultmessage-1"><span class="tsd-kind-call-signature">queueHitResultMessage</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">result</span><span class="tsd-signature-symbol">:</span> <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#queuehitresultmessage-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>Sub-method of <a href="#applymove" class="tsd-kind-method"><code>applyMove</code></a> that queues the hit-result message
|
||
on the final strike of the move against a target</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">result</span>: <a href="../enums/field_pokemon.HitResult.html" class="tsd-signature-type tsd-kind-enum">HitResult</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../enums/field_pokemon.HitResult.html" class="tsd-kind-enum"><code>HitResult</code></a> of the move</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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L915">src/phases/move-effect-phase.ts:915</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="removetarget"><code class="tsd-tag">Protected</code><span>remove<wbr/>Target</span><a href="#removetarget" 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="removetarget-1"><span class="tsd-kind-call-signature">removeTarget</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#removetarget-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>Removes the given <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> from this phase's target list</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">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> to be removed</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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L679">src/phases/move-effect-phase.ts:679</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_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#showenemytrainer">showEnemyTrainer</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/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="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_pokemon-phase.PokemonPhase.html">PokemonPhase</a>.<a href="phases_pokemon-phase.PokemonPhase.html#start">start</a></p><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L246">src/phases/move-effect-phase.ts:246</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="stopmultihit"><span>stop<wbr/>Multi<wbr/>Hit</span><a href="#stopmultihit" 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="stopmultihit-1"><span class="tsd-kind-call-signature">stopMultiHit</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</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><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#stopmultihit-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>Prevents subsequent strikes of this phase's invoked move from occurring</p>
|
||
</div><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">target</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>If defined, only stop subsequent strikes against this <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a></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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L693">src/phases/move-effect-phase.ts:693</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="triggermoveeffects"><code class="tsd-tag">Protected</code><span>trigger<wbr/>Move<wbr/>Effects</span><a href="#triggermoveeffects" 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="triggermoveeffects-1"><span class="tsd-kind-call-signature">triggerMoveEffects</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">triggerType</span><span class="tsd-signature-symbol">:</span> <a href="../enums/enums_MoveEffectTrigger.MoveEffectTrigger.html" class="tsd-signature-type tsd-kind-enum">MoveEffectTrigger</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">user</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><br/> <span class="tsd-kind-parameter">target</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</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><br/> <span class="tsd-kind-parameter">firstTarget</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</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">selfTarget</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="#triggermoveeffects-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>Triggers move effects of the given move effect trigger.</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">triggerType</span>: <a href="../enums/enums_MoveEffectTrigger.MoveEffectTrigger.html" class="tsd-signature-type tsd-kind-enum">MoveEffectTrigger</a></span><div class="tsd-comment tsd-typography"><p>The <a href="../enums/enums_MoveEffectTrigger.MoveEffectTrigger.html" class="tsd-kind-enum"><code>MoveEffectTrigger</code></a> being applied</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">user</span>: <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.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">target</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="field_pokemon.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The <a href="field_pokemon.default.html" class="tsd-kind-class"><code>Pokemon</code></a> targeted by the move</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">firstTarget</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the target is the first to be hit by the current strike</p>
|
||
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">selfTarget</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>If defined, limits the effects triggered to either self-targeted
|
||
effects (if set to <code>true</code>) or targeted effects (if set to <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><p>a <code>Promise</code> applying the relevant move effects.</p>
|
||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L736">src/phases/move-effect-phase.ts:736</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="updatesubstitutes"><code class="tsd-tag">Protected</code><span>update<wbr/>Substitutes</span><a href="#updatesubstitutes" 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="updatesubstitutes-1"><span class="tsd-kind-call-signature">updateSubstitutes</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#updatesubstitutes-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>Removes all substitutes that were broken by 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/8dd6ba29a11eb1d0fae39e0ea5307f180f440cd0/src/phases/move-effect-phase.ts#L716">src/phases/move-effect-phase.ts:716</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="#battlerindex" class="tsd-is-protected tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>battler<wbr/>Index</span></a><a href="#fieldindex" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>field<wbr/>Index</span></a><a href="#move"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>move</span></a><a href="#player" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>player</span></a><a href="#reflected" 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>reflected</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>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="#applyhelditemflinchcheck" 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>apply<wbr/>Held<wbr/>Item<wbr/>Flinch<wbr/>Check</span></a><a href="#applymove" 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>apply<wbr/>Move</span></a><a href="#applymovedamage" 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>apply<wbr/>Move<wbr/>Damage</span></a><a href="#applymoveeffects" 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>apply<wbr/>Move<wbr/>Effects</span></a><a href="#applyongethitabeffects" 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>apply<wbr/>On<wbr/>Get<wbr/>Hit<wbr/>Ab<wbr/>Effects</span></a><a href="#applyontargeteffects" 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>apply<wbr/>On<wbr/>Target<wbr/>Effects</span></a><a href="#checkbypassaccandinvuln"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>check<wbr/>Bypass<wbr/>Acc<wbr/>And<wbr/>Invuln</span></a><a href="#checkbypasssemiinvuln"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>check<wbr/>Bypass<wbr/>Semi<wbr/>Invuln</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="#executeforall" 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>execute<wbr/>For<wbr/>All</span></a><a href="#getfirsttarget"><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/>First<wbr/>Target</span></a><a href="#getnewhitphase" 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>get<wbr/>New<wbr/>Hit<wbr/>Phase</span></a><a href="#getpokemon" 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>get<wbr/>Pokemon</span></a><a href="#gettargets"><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/>Targets</span></a><a href="#getuserpokemon"><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/>User<wbr/>Pokemon</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="#hitcheck"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hit<wbr/>Check</span></a><a href="#onfainttarget" 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>on<wbr/>Faint<wbr/>Target</span></a><a href="#queuehitresultmessage" 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>queue<wbr/>Hit<wbr/>Result<wbr/>Message</span></a><a href="#removetarget" 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>remove<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="#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="#stopmultihit"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>stop<wbr/>Multi<wbr/>Hit</span></a><a href="#triggermoveeffects" 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>trigger<wbr/>Move<wbr/>Effects</span></a><a href="#updatesubstitutes" 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>update<wbr/>Substitutes</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>
|