<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>DelayedAttackAttr | pokemon-rogue-battle</title><metaname="description"content="Documentation for pokemon-rogue-battle"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os";document.body.style.display="none";setTimeout(()=>app?app.showPage():document.body.style.removeProperty("display"),500)</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">pokemon-rogue-battle</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../index.html">pokemon-rogue-battle</a></li><li><ahref="../modules/data_move.html">data/move</a></li><li><ahref="data_move.DelayedAttackAttr.html">DelayedAttackAttr</a></li></ul><h1>Class DelayedAttackAttr</h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>Attack Move that doesn't hit the turn it is played and doesn't allow for multiple
uses on the same target. Examples are Future Sight or Doom Desire.</p>
</div><divclass="tsd-comment tsd-typography"><h4class="tsd-anchor-link"><aid="Param: tagType"class="tsd-anchor"></a>Param: tagType<ahref="#Param: tagType"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>The <ahref="../enums/enums_arena_tag_type.ArenaTagType.html"class="tsd-kind-enum"><code>ArenaTagType</code></a> that will be placed on the field when the move is used</p>
<h4class="tsd-anchor-link"><aid="Param: chargeAnim"class="tsd-anchor"></a>Param: chargeAnim<ahref="#Param: chargeAnim"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>The <ahref="../enums/data_battle_anims.ChargeAnim.html"class="tsd-kind-enum"><code>Charging Animation</code></a> used for the move</p>
<h4class="tsd-anchor-link"><aid="Param: chargeText"class="tsd-anchor"></a>Param: chargeText<ahref="#Param: chargeText"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>The text to display when the move is used</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">user</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class"><code>Pokemon</code></a> using the move</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">target</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class"><code>Pokemon</code></a> target of the move</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="data_move.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="data_move.default.html"class="tsd-kind-class"><code>Move</code></a> with this attribute</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">args</span>: <spanclass="tsd-signature-type">any</span><spanclass="tsd-signature-symbol">[]</span></span><divclass="tsd-comment tsd-typography"><p>Set of unique arguments needed by this attribute</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol">></span></h4><p>true if application of the ability succeeds</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">target</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="field_pokemon.default.html"class="tsd-kind-class"><code>Pokemon</code></a> target of the move</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="data_move.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="data_move.default.html"class="tsd-kind-class"><code>Move</code></a> with this attribute</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">cancelled</span>: <ahref="utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="utils.BooleanHolder.html"class="tsd-kind-class"><code>Utils.BooleanHolder</code></a> which stores if the move should fail</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="data_move.OverrideMoveEffectAttr.html">OverrideMoveEffectAttr</a>.<ahref="data_move.OverrideMoveEffectAttr.html#getFailedText">getFailedText</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/data/move.ts#L1073">src/data/move.ts:1073</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="getTargetBenefitScore"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Target<wbr/>Benefit<wbr/>Score</span><ahref="#getTargetBenefitScore"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="getTargetBenefitScore.getTargetBenefitScore-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Target<wbr/>Benefit<wbr/>Score</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">user</span>, <spanclass="tsd-kind-parameter">target</span>, <spanclass="tsd-kind-parameter">move</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><ahref="#getTargetBenefitScore.getTargetBenefitScore-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Used by the Enemy AI to rank an attack based on a given target</p>
</div><asideclass="tsd-sources"><p>Inherited from <ahref="data_move.OverrideMoveEffectAttr.html">OverrideMoveEffectAttr</a>.<ahref="data_move.OverrideMoveEffectAttr.html#getTargetBenefitScore">getTargetBenefitScore</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/0c920ba195c8fa8470694f5a1f4b3157438aa256/src/data/move.ts#L1091">src/data/move.ts:1091</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="getUserBenefitScore"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>User<wbr/>Benefit<wbr/>Score</span><ahref="#getUserBenefitScore"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="getUserBenefitScore.getUserBenefitScore-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>User<wbr/>Benefit<wbr/>Score</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">user</span>, <spanclass="tsd-kind-parameter">target</span>, <spanclass="tsd-kind-parameter">move</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><ahref="#getUserBenefitScore.getUserBenefitScore-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Used by the Enemy AI to rank an attack based on a given user</p>