<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>TurnStatusEffectModifier | 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/modifier_modifier.html">modifier/modifier</a></li><li><ahref="modifier_modifier.TurnStatusEffectModifier.html">TurnStatusEffectModifier</a></li></ul><h1>Class TurnStatusEffectModifier</h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>Modifier used for held items, namely Toxic Orb and Flame Orb, that apply a
set <ahref="../enums/data_status_effect.StatusEffect.html"class="tsd-kind-enum"><code>StatusEffect</code></a> at the end of a turn.</p>
</div></section></div></details></section></section><sectionclass="tsd-panel-group tsd-member-group"><h2>Constructors</h2><sectionclass="tsd-panel tsd-member"><aid="constructor"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>constructor</span><ahref="#constructor"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="constructor.new_TurnStatusEffectModifier"class="tsd-anchor"></a><spanclass="tsd-kind-constructor-signature">new <wbr/>Turn<wbr/>Status<wbr/>Effect<wbr/>Modifier</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">type</span>, <spanclass="tsd-kind-parameter">pokemonId</span>, <spanclass="tsd-kind-parameter">stackCount</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="modifier_modifier.TurnStatusEffectModifier.html"class="tsd-signature-type tsd-kind-class">TurnStatusEffectModifier</a><ahref="#constructor.new_TurnStatusEffectModifier"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-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">type</span>: <ahref="modifier_modifier_type.ModifierType.html"class="tsd-signature-type tsd-kind-class">ModifierType</a></span></li><li><span><spanclass="tsd-kind-parameter">pokemonId</span>: <spanclass="tsd-signature-type">number</span></span></li><li><span><codeclass="tsd-tag ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">stackCount</span>: <spanclass="tsd-signature-type">number</span></span></li></ul></div><h4class="tsd-returns-title">Returns <ahref="modifier_modifier.TurnStatusEffectModifier.html"class="tsd-signature-type tsd-kind-class">TurnStatusEffectModifier</a></h4><asideclass="tsd-sources"><p>Overrides <ahref="modifier_modifier.PokemonHeldItemModifier.html">PokemonHeldItemModifier</a>.<ahref="modifier_modifier.PokemonHeldItemModifier.html#constructor">constructor</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/069466b05f34eb7e5cfd4f8aa8b0096d1dd0fa05/src/modifier/modifier.ts#L888">src/modifier/modifier.ts:888</a></li></ul></aside></li></ul></section></section><sectionclass="tsd-panel-group tsd-member-group"><h2>Properties</h2><sectionclass="tsd-panel tsd-member tsd-is-private"><aid="effect"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag ts-flagPrivate">Private</code><span>effect</span><ahref="#effect"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">effect</span><spanclass="tsd-signature-symbol">:</span><ahref="../enums/data_status_effect.StatusEffect.html"class="tsd-signature-type tsd-kind-enum">StatusEffect</a></div><divclass="tsd-comment tsd-typography"><p>The status effect to be applied by the held item</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/069466b05f34eb7e5cfd4f8aa8b0096d1dd0fa05/src/modifier/modifier.ts#L886">src/modifier/modifier.ts:886</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="pokemonId"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>pokemon<wbr/>Id</span><ahref="#pokemonId"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">pokemon<wbr/>Id</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.PokemonHeldItemModifier.html">PokemonHeldItemModifier</a>.<ahref="modifier_modifier.PokemonHeldItemModifier.html#pokemonId">pokemonId</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/069466b05f34eb7e5cfd4f8aa8b0096d1dd0fa05/src/modifier/modifier.ts#L454">src/modifier/modifier.ts:454</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="stackCount"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>stack<wbr/>Count</span><ahref="#stackCount"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">stack<wbr/>Count</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.PokemonHeldItemModifier.html">PokemonHeldItemModifier</a>.<ahref="modifier_modifier.PokemonHeldItemModifier.html#stackCount">stackCount</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/069466b05f34eb7e5cfd4f8aa8b0096d1dd0fa05/src/modifier/modifier.ts#L139">src/modifier/modifier.ts:139</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="type"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>type</span><ahref="#type"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">type</span><spanclass="tsd-signature-symbol">:</span><ahref="modifier_modifier_type.ModifierType.html"class="tsd-signature-type tsd-kind-class">ModifierType</a></div><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.PokemonHeldItemModifier.html">PokemonHeldItemModifier</a>.<ahref="modifier_modifier.PokemonHeldItemModifier.html#type">type</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/069466b05f34eb7e5cfd4f8aa8b0096d1dd0fa05/src/modifier/modifier.ts#L121">src/modifier/modifier.ts:121</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="virtualStackCount"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>virtual<wbr/>Stack<wbr/>Count</span><ahref="#virtualStackCount"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">virtual<wbr/>Stack<wbr/>Count</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><p>Inherited from <ahref="modifier_modifier.PokemonHeldItemModifier.html">PokemonHeldItemModifier</a>.<ahref="modifier_modifier.PokemonHeldItemModifier.html#virtualStackCount">virtualStackCount</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/069466b05f34eb7e5cfd4f8aa8b0096d1dd0fa05/src/modifier/modifier.ts#L140">src/modifier/modifier.ts:140</a></li></ul></aside></section></section><sectionclass="tsd-panel-group tsd-member-group"><h2>Methods</h2><sec
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><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>[0] <ahref="field_pokemon.default.html"class="tsd-kind-class"><code>Pokemon</code></a> that holds the held item</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>true if the status effect was applied successfully, false if
intentionally ignoring potentially different <ahref="modifier_modifier.TurnStatusEffectModifier.html#effect"class="tsd-kind-property"><code>effect</code></a>s
to prevent held item stockpiling since the item obtained first
would be the only item able to <ahref="modifier_modifier.TurnStatusEffectModifier.html#apply"class="tsd-kind-method"><code>apply</code></a> successfully.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifier</span>: <ahref="modifier_modifier.Modifier.html"class="tsd-signature-type tsd-kind-class">Modifier</a></span><divclass="tsd-comment tsd-typography"><p><ahref="modifier_modifier.Modifier.html"class="tsd-kind-class"><code>Modifier</code></a> being type tested</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>true if modifier is an instance of