<p>This property will only be available if defined in the Scene Injection Map.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#add">add</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101257</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="anims"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>anims</span><ahref="#anims"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">anims</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">AnimationManager</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the global Animation Manager.</p>
<p>This property will only be available if defined in the Scene Injection Map.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L212">src/battle-scene.ts:212</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="bgmVolume"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>bgm<wbr/>Volume</span><ahref="#bgmVolume"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">bgm<wbr/>Volume</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 1</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L142">src/battle-scene.ts:142</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="cache"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>cache</span><ahref="#cache"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">cache</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">CacheManager</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the global Cache.</p>
<p>This property will only be available if defined in the Scene Injection Map.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#cache">cache</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101215</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="cameras"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>cameras</span><ahref="#cameras"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">cameras</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">CameraManager</span></div><divclass="tsd-comment tsd-typography"><p>The Scene Camera Manager.</p>
<p>This property will only be available if defined in the Scene Injection Map.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#cameras">cameras</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101250</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="candyBar"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>candy<wbr/>Bar</span><ahref="#candyBar"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">candy<wbr/>Bar</span><spanclass="tsd-signature-symbol">:</span><ahref="ui_candy_bar.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L245">src/battle-scene.ts:245</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="candyUpgradeDisplay"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>candy<wbr/>Upgrade<wbr/>Display</span><ahref="#candyUpgradeDisplay"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">candy<wbr/>Upgrade<wbr/>Display</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 0</span></div><divclass="tsd-comment tsd-typography"><p>Determines what type of notification is used for Candy Upgrades</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L171">src/battle-scene.ts:171</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="candyUpgradeNotification"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>candy<wbr/>Upgrade<wbr/>Notification</span><ahref="#candyUpgradeNotification"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">candy<wbr/>Upgrade<wbr/>Notification</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 0</span></div><divclass="tsd-comment tsd-typography"><p>Determines the condition for a notification should be shown for Candy Upgrades</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L165">src/battle-scene.ts:165</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="charSprite"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>char<wbr/>Sprite</span><ahref="#charSprite"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">char<wbr/>Sprite</span><spanclass="tsd-signature-symbol">:</span><ahref="ui_char_sprite.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L240">src/battle-scene.ts:240</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="children"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>children</span><ahref="#children"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">children</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">DisplayList</span></div><divclass="tsd-comment tsd-typography"><p>The Game Object Display List belonging to this Scene.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#data">data</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101294</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="disableMenu"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>disable<wbr/>Menu</span><ahref="#disableMenu"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">disable<wbr/>Menu</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = false</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L221">src/battle-scene.ts:221</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="eggSkipPreference"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>egg<wbr/>Skip<wbr/>Preference</span><ahref="#eggSkipPreference"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">egg<wbr/>Skip<wbr/>Preference</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 0</span></div><divclass="tsd-comment tsd-typography"><p>Determines if the egg hatching animation should be skipped</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L321">src/battle-scene.ts:321</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="events"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>events</span><ahref="#events"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">events</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">EventEmitter</span></div><divclass="tsd-comment tsd-typography"><p>A Scene specific Event Emitter.</p>
</div><divclass="tsd-comment tsd-typography"><h4class="tsd-anchor-link"><aid="Remarks"class="tsd-anchor"></a>Remarks<ahref="#Remarks"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>The <code>expParty</code> can have several modes:</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#input">input</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101301</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="inputController"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>input<wbr/>Controller</span><ahref="#inputController"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">input<wbr/>Controller</span><spanclass="tsd-signature-symbol">:</span><ahref="inputs_controller.InputsController.html"class="tsd-signature-type tsd-kind-class">InputsController</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L136">src/battle-scene.ts:136</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="inputMethod"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>input<wbr/>Method</span><ahref="#inputMethod"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">input<wbr/>Method</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">string</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L307">src/battle-scene.ts:307</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="lastEnemyTrainer"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>last<wbr/>Enemy<wbr/>Trainer</span><ahref="#lastEnemyTrainer"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">last<wbr/>Enemy<wbr/>Trainer</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><ahref="field_trainer.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L257">src/battle-scene.ts:257</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="lastMysteryEncounter"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag">Optional</code><span>last<wbr/>Mystery<wbr/>Encounter</span><ahref="#lastMysteryEncounter"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">last<wbr/>Mystery<wbr/>Encounter</span><spanclass="tsd-signature-symbol">?:</span><ahref="data_mystery_encounters_mystery_encounter.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><divclass="tsd-comment tsd-typography"><p>If the previous wave was a MysteryEncounter, tracks the object with this variable. Mostly used for visual object cleanup</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L266">src/battle-scene.ts:266</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="lastSavePlayTime"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>last<wbr/>Save<wbr/>Play<wbr/>Time</span><ahref="#lastSavePlayTime"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">last<wbr/>Save<wbr/>Play<wbr/>Time</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = null</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L140">src/battle-scene.ts:140</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="lights"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>lights</span><ahref="#lights"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">lights</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">LightsManager</span></div><divclass="tsd-comment tsd-typography"><p>The Scene Lights Manager Plugin.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#load">load</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101308</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="lockModifierTiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>lock<wbr/>Modifier<wbr/>Tiers</span><ahref="#lockModifierTiers"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">lock<wbr/>Modifier<wbr/>Tiers</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">boolean</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L255">src/battle-scene.ts:255</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="make"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>make</span><ahref="#make"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">make</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">GameObjectCreator</span></div><divclass="tsd-comment tsd-typography"><p>The Scene Game Object Creator.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#matter">matter</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101336</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="modifiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>modifiers</span><ahref="#modifiers"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">modifiers</span><spanclass="tsd-signature-symbol">:</span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a><spanclass="tsd-signature-symbol">[]</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L282">src/battle-scene.ts:282</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="money"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>money</span><ahref="#money"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">money</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L260">src/battle-scene.ts:260</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="moneyFormat"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>money<wbr/>Format</span><ahref="#moneyFormat"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">money<wbr/>Format</span><spanclass="tsd-signature-symbol">:</span><ahref="../enums/enums_money_format.MoneyFormat.html"class="tsd-signature-type tsd-kind-enum">MoneyFormat</a><spanclass="tsd-signature-symbol"> = MoneyFormat.NORMAL</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L172">src/battle-scene.ts:172</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="moveAnimations"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>move<wbr/>Animations</span><ahref="#moveAnimations"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">move<wbr/>Animations</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L177">src/battle-scene.ts:177</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="musicPreference"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>music<wbr/>Preference</span><ahref="#musicPreference"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">music<wbr/>Preference</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = MusicPreference.MIXED</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L176">src/b
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L264">src/battle-scene.ts:264</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="offsetGym"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>offset<wbr/>Gym</span><ahref="#offsetGym"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">offset<wbr/>Gym</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">boolean</span></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L290">src/battle-scene.ts:290</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="partyExpBar"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>party<wbr/>Exp<wbr/>Bar</span><ahref="#partyExpBar"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">party<wbr/>Exp<wbr/>Bar</span><spanclass="tsd-signature-symbol">:</span><ahref="ui_party_exp_bar.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L244">src/battle-scene.ts:244</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="pbTray"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>pb<wbr/>Tray</span><ahref="#pbTray"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">pb<wbr/>Tray</span><spanclass="tsd-signature-symbol">:</span><ahref="ui_pokeball_tray.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L241">src/battle-scene.ts:241</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="pbTrayEnemy"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>pb<wbr/>Tray<wbr/>Enemy</span><ahref="#pbTrayEnemy"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">pb<wbr/>Tray<wbr/>Enemy</span><spanclass="tsd-signature-symbol">:</span><ahref="ui_pokeball_tray.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L242">src/battle-scene.ts:242</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="phaseQueue"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>phase<wbr/>Queue</span><ahref="#phaseQueue"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">phase<wbr/>Queue</span><spanclass="tsd-signature-symbol">:</span><ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a><spanclass="tsd-signature-symbol">[]</span></div><divclass="tsd-comment tsd-typography"><p>PhaseQueue: dequeue/remove the first element to get the next phase</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L227">src/battle-scene.ts:227</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="physics"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>physics</span><ahref="#physics"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">physics</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">ArcadePhysics</span></div><divclass="tsd-comment tsd-typography"><p>The Scene Arcade Physics Plugin.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#physics">physics</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101329</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="plugins"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>plugins</span><ahref="#plugins"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">plugins</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">PluginManager</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the global Plugin Manager.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#plugins">plugins</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101358</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="pokeballCounts"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>pokeball<wbr/>Counts</span><ahref="#pokeballCounts"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">pokeball<wbr/>Counts</span><spanclass="tsd-signature-symbol">:</span><ahref="../interfaces/battle_scene.PokeballCounts.html"class="tsd-signature-type tsd-kind-interface">PokeballCounts</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L259">src/battle-scene.ts:259</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="pokemonInfoContainer"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>pokemon<wbr/>Info<wbr/>Container</span><ahref="#pokemonInfoContainer"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/>Info<wbr/>Container</span><spanclass="tsd-signature-symbol">:</span><ahref="ui_pokemon_info_container.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L261">src/battle-scene.ts:261</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="registry"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>registry</span><ahref="#registry"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">registry</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">DataManager</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the global Data Manager.</p>
<p>This property will only be available if defined in the Scene Injection Map.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#registry">registry</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101222</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="renderer"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>renderer</span><ahref="#renderer"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">renderer</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">CanvasRenderer</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">WebGLRenderer</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the renderer instance Phaser is using, either Canvas Renderer or WebGL Renderer.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#scale">scale</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101350</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="scaledCanvas"class="tsd-anchor"></a><h3class="tsd-anchor-link"><codeclass="tsd-tag">Readonly</code><span>scaled<wbr/>Canvas</span><ahref="#scaledCanvas"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">scaled<wbr/>Canvas</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-symbol">{ </span><br/><span></span><spanclass="tsd-kind-property">height</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">; </span><br/><span></span><spanclass="tsd-kind-property">width</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">; </span><br/><spanclass="tsd-signature-symbol">}</span><spanclass="tsd-signature-symbol"> = ...</span></div><divclass="tsd-comment tsd-typography"><p>Since everything is scaled up by 6 by default using the game.canvas is annoying
</div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#scaledCanvas">scaledCanvas</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/scene-base.ts#L13">src/scene-base.ts:13</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="scene"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>scene</span><ahref="#scene"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">scene</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">ScenePlugin</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the Scene Manager Plugin.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#sound">sound</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101229</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="spritePipeline"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>sprite<wbr/>Pipeline</span><ahref="#spritePipeline"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">sprite<wbr/>Pipeline</span><spanclass="tsd-signature-symbol">:</span><ahref="pipelines_sprite.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L296">src/battle-scene.ts:296</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="sys"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>sys</span><ahref="#sys"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">sys</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">Systems</span></div><divclass="tsd-comment tsd-typography"><p>The Scene Systems. You must never overwrite this property, or all hell will break lose.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#sys">sys</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101194</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="textures"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>textures</span><ahref="#textures"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">textures</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">TextureManager</span></div><divclass="tsd-comment tsd-typography"><p>A reference to the Texture Manager.</p>
<p>This property will only be available if defined in the Scene Injection Map.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#textures">textures</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101236</li></ul></aside></section><sectionclass="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><aid="time"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>time</span><ahref="#time"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">time</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">Clock</span></div><divclass="tsd-comment tsd-typography"><p>The Scene Time and Clock Plugin.</p>
<p>This property will only be available if defined in the Scene Injection Map and the plugin is installed.</p>
</div><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><p>Inherited from <ahref="scene_base.SceneBase.html">SceneBase</a>.<ahref="scene_base.SceneBase.html#tweens">tweens</a></p><ul><li>Defined in node_modules/phaser/types/phaser.d.ts:101322</li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="typeHints"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>type<wbr/>Hints</span><ahref="#typeHints"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<wbr/>Hints</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = false</span></div><divclass="tsd-comment tsd-typography"><p>Defines whether or not to show type effectiveness hints</p>
</div><sectionclass="tsd-panel"><h4>Type Parameters</h4><ulclass="tsd-type-parameter-list"><li><span><aid="applyModifier.applyModifier-1.T"class="tsd-anchor"></a><spanclass="tsd-kind-type-parameter">T</span><spanclass="tsd-signature-keyword"> extends </span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a></span></li></ul></section><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifierType</span>: <ahref="../types/utils.Constructor.html"class="tsd-signature-type tsd-kind-type-alias">Constructor</a><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyModifier.applyModifier-1.T">T</a><spanclass="tsd-signature-symbol">></span></span><divclass="tsd-comment tsd-typography"><p>The type of modifier to apply; must extend <ahref="modifier_modifier.PersistentModifier.html"class="tsd-kind-class"><code>PersistentModifier</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">player</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Whether to search the player (<code>true</code>) or the enemy (<code>false</code>); Defaults to <code>true</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Rest</code><spanclass="tsd-signature-symbol">...</span><spanclass="tsd-kind-parameter">args</span>: <spanclass="tsd-signature-type">Parameters</span><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyModifier.applyModifier-1.T">T</a><spanclass="tsd-signature-symbol">[</span><spanclass="tsd-signature-type">"apply"</span><spanclass="tsd-signature-symbol">]</span><spanclass="tsd-signature-symbol">></span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyModifier.applyModifier-1.T">T</a></h4><p>the first modifier that matches <code>modifierType</code> and was applied; return <code>null</code> if none matched</p>
</div><sectionclass="tsd-panel"><h4>Type Parameters</h4><ulclass="tsd-type-parameter-list"><li><span><aid="applyModifiers.applyModifiers-1.T-1"class="tsd-anchor"></a><spanclass="tsd-kind-type-parameter">T</span><spanclass="tsd-signature-keyword"> extends </span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a></span></li></ul></section><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifierType</span>: <ahref="../types/utils.Constructor.html"class="tsd-signature-type tsd-kind-type-alias">Constructor</a><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyModifiers.applyModifiers-1.T-1">T</a><spanclass="tsd-signature-symbol">></span></span><divclass="tsd-comment tsd-typography"><p>The type of modifier to apply; must extend <ahref="modifier_modifier.PersistentModifier.html"class="tsd-kind-class"><code>PersistentModifier</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">player</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Whether to search the player (<code>true</code>) or the enemy (<code>false</code>); Defaults to <code>true</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Rest</code><spanclass="tsd-signature-symbol">...</span><spanclass="tsd-kind-parameter">args</span>: <spanclass="tsd-signature-type">Parameters</span><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyModifiers.applyModifiers-1.T-1">T</a><spanclass="tsd-signature-symbol">[</span><spanclass="tsd-signature-type">"apply"</span><spanclass="tsd-signature-symbol">]</span><spanclass="tsd-signature-symbol">></span></span></li></ul></div><h4class="tsd-returns-title">Returns <aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyModifiers.applyModifiers-1.T-1">T</a><spanclass="tsd-signature-symbol">[]</span></h4><p>the list of all modifiers that matched <code>modifierType</code> and were applied.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">expValue</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>raw value of exp to split among participants, OR the base multiplier to use with waveIndex</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemonDefeated</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>If true, will increment Macho Brace stacks and give the party Pokemon friendship increases</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">useWaveIndexMultiplier</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Default false. If true, will multiply expValue by a scaling waveIndex multiplier. Not needed if expValue is already scaled by level/wave</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">pokemonParticipantIds</span>: <spanclass="tsd-signature-type">Set</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">></span></span><divclass="tsd-comment tsd-typography"><p>Participants. If none are defined, no exp will be given. To spread evenly among the party, should pass all ids of party members.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L3118">src/battle-scene.ts:3118</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="applyShuffledModifiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>apply<wbr/>Shuffled<wbr/>Modifiers</span><ahref="#applyShuffledModifiers"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="applyShuffledModifiers.applyShuffledModifiers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Shuffled<wbr/>Modifiers</span><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyShuffledModifiers.applyShuffledModifiers-1.T-3">T</a><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">scene</span>, <spanclass="tsd-kind-parameter">modifierType</span>, <spanclass="tsd-kind-parameter">player</span><spanclass="tsd-signature-symbol">?</span>, <spanclass="tsd-signature-symbol">...</span><spanclass="tsd-kind-parameter">args</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyShuffledModifiers.applyShuffledModifiers-1.T-3">T</a><spanclass="tsd-signature-symbol">[]</span><ahref="#applyShuffledModifiers.applyShuffledModifiers-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>Apply all modifiers that match <code>modifierType</code> in a random order</p>
</div><sectionclass="tsd-panel"><h4>Type Parameters</h4><ulclass="tsd-type-parameter-list"><li><span><aid="applyShuffledModifiers.applyShuffledModifiers-1.T-3"class="tsd-anchor"></a><spanclass="tsd-kind-type-parameter">T</span><spanclass="tsd-signature-keyword"> extends </span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a></span></li></ul></section><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">scene</span>: <ahref="battle_scene.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="battle_scene.default.html"class="tsd-kind-class"><code>BattleScene</code></a> used to randomize the order of modifiers</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">modifierType</span>: <ahref="../types/utils.Constructor.html"class="tsd-signature-type tsd-kind-type-alias">Constructor</a><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyShuffledModifiers.applyShuffledModifiers-1.T-3">T</a><spanclass="tsd-signature-symbol">></span></span><divclass="tsd-comment tsd-typography"><p>The type of modifier to apply; must extend <ahref="modifier_modifier.PersistentModifier.html"class="tsd-kind-class"><code>PersistentModifier</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">player</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Whether to search the player (<code>true</code>) or the enemy (<code>false</code>); Defaults to <code>true</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Rest</code><spanclass="tsd-signature-symbol">...</span><spanclass="tsd-kind-parameter">args</span>: <spanclass="tsd-signature-type">Parameters</span><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyShuffledModifiers.applyShuffledModifiers-1.T-3">T</a><spanclass="tsd-signature-symbol">[</span><spanclass="tsd-signature-type">"apply"</span><spanclass="tsd-signature-symbol">]</span><spanclass="tsd-signature-symbol">></span></span></li></ul></div><h4class="tsd-returns-title">Returns <aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#applyShuffledModifiers.applyShuffledModifiers-1.T-3">T</a><spanclass="tsd-signature-symbol">[]</span></h4><p>the list of all modifiers that matched <code>modifierType</code> and were applied.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p>If specified, only removes held items from that <ahref="field_pokemon.default.html"class="tsd-kind-class"><code>Pokemon</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2773">src/battle-scene.ts:2773</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="clearEnemyModifiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>clear<wbr/>Enemy<wbr/>Modifiers</span><ahref="#clearEnemyModifiers"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="clearEnemyModifiers.clearEnemyModifiers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">clear<wbr/>Enemy<wbr/>Modifiers</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#clearEnemyModifiers.clearEnemyModifiers-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>Removes all modifiers from enemy pokemon of <ahref="modifier_modifier.PersistentModifier.html"class="tsd-kind-class"><code>PersistentModifier</code></a> type</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2761">src/battle-scene.ts:2761</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="clearPhaseQueue"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>clear<wbr/>Phase<wbr/>Queue</span><ahref="#clearPhaseQueue"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="clearPhaseQueue.clearPhaseQueue-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">clear<wbr/>Phase<wbr/>Queue</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#clearPhaseQueue.clearPhaseQueue-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>Clears the phaseQueue</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2304">src/battle-scene.ts:2304</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="clearPhaseQueueSplice"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>clear<wbr/>Phase<wbr/>Queue<wbr/>Splice</span><ahref="#clearPhaseQueueSplice"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="clearPhaseQueueSplice.clearPhaseQueueSplice-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">clear<wbr/>Phase<wbr/>Queue<wbr/>Splice</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#clearPhaseQueueSplice.clearPhaseQueueSplice-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>Resets phaseQueuePrependSpliceIndex to -1, implies that calls to unshiftPhase will insert at end of phaseQueuePrepend</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifierFilter</span>: <ahref="../types/modifier_modifier.ModifierPredicate.html"class="tsd-signature-type tsd-kind-type-alias">ModifierPredicate</a></span><divclass="tsd-comment tsd-typography"><p>The function used to filter a target's modifiers</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">player</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Whether to search the player (<code>true</code>) or the enemy (<code>false</code>); Defaults to <code>true</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a></h4><p>the first modifier that passed the <code>modifierFilter</code> function; <code>undefined</code> if none passed</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2882">src/battle-scene.ts:2882</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="findModifiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>find<wbr/>Modifiers</span><ahref="#findModifiers"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="findModifiers.findModifiers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">find<wbr/>Modifiers</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">modifierFilter</span>, <spanclass="tsd-kind-parameter">isPlayer</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a><spanclass="tsd-signature-symbol">[]</span><ahref="#findModifiers.findModifiers-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>Get all of the modifiers that pass the <code>modifierFilter</code> function</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifierFilter</span>: <ahref="../types/modifier_modifier.ModifierPredicate.html"class="tsd-signature-type tsd-kind-type-alias">ModifierPredicate</a></span><divclass="tsd-comment tsd-typography"><p>The function used to filter a target's modifiers</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isPlayer</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Whether to search the player (<code>true</code>) or the enemy (<code>false</code>); Defaults to <code>true</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a><spanclass="tsd-signature-symbol">[]</span></h4><p>the list of all modifiers that passed the <code>modifierFilter</code> function</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2872">src/battle-scene.ts:2872</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="findPhase"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>find<wbr/>Phase</span><ahref="#findPhase"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="findPhase.findPhase-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">find<wbr/>Phase</span><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#findPhase.findPhase-1.P">P</a><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phaseFilter</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#findPhase.findPhase-1.P">P</a><ahref="#findPhase.findPhase-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>Find a specific <ahref="phase.Phase.html"class="tsd-kind-class"><code>Phase</code></a> in the phase queue.</p>
</div><sectionclass="tsd-panel"><h4>Type Parameters</h4><ulclass="tsd-type-parameter-list"><li><span><aid="findPhase.findPhase-1.P"class="tsd-anchor"></a><spanclass="tsd-kind-type-parameter">P</span><spanclass="tsd-signature-keyword"> extends </span><ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a> = <ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a></span></li></ul></section><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">phaseFilter</span>: <spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phase</span><spanclass="tsd-signature-symbol">: </span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#findPhase.findPhase-1.P">P</a><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol"> =></span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol">)</span></span><divclass="tsd-comment tsd-typography"><p>filter function to use to find the wanted phase</p>
</div><divclass="tsd-comment tsd-typography"></div><ulclass="tsd-parameters"><liclass="tsd-parameter-signature"><ulclass="tsd-signatures"><liclass="tsd-signature"><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phase</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span></li><liclass="tsd-description"><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">phase</span>: <aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#findPhase.findPhase-1.P">P</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#findPhase.findPhase-1.P">P</a></h4><p>the found phase or undefined if none found</p>
Active Pokemon include both enemy and player Pokemon of the current wave.
Note: Questions on garbage collection go to</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">string</span><spanclass="tsd-signature-symbol">[]</span></h4><p>a string array of active sprite and audio keys that should not be deleted</p>
</div><h4class="tsd-returns-title">Returns <ahref="field_pokemon.EnemyPokemon.html"class="tsd-signature-type tsd-kind-class">EnemyPokemon</a><spanclass="tsd-signature-symbol">[]</span></h4><p>array of <ahref="field_pokemon.EnemyPokemon.html"class="tsd-kind-class"><code>EnemyPokemon</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><ahref="field_pokemon.EnemyPokemon.html"class="tsd-signature-type tsd-kind-class">EnemyPokemon</a></h4><p>The first <ahref="field_pokemon.EnemyPokemon.html"class="tsd-kind-class"><code>EnemyPokemon</code></a> that is <ahref="battle_scene.default.html#getEnemyField"class="tsd-kind-method"><code>on the field</code></a>
and <ahref="field_pokemon.default.html#isActive"class="tsd-kind-method"><code>is active</code></a>
(aka <ahref="field_pokemon.default.html#isAllowedInBattle"class="tsd-kind-method"><code>is allowed in battle</code></a>),
or <code>undefined</code> if there are no valid pokemon</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">isEnemy</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Whether to return the enemy's modifier bar</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <ahref="modifier_modifier.ModifierBar.html"class="tsd-signature-type tsd-kind-class">ModifierBar</a></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L866">src/battle-scene.ts:866</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getModifiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Modifiers</span><ahref="#getModifiers"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="getModifiers.getModifiers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Modifiers</span><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#getModifiers.getModifiers-1.T-4">T</a><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">modifierType</span>, <spanclass="tsd-kind-parameter">player</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#getModifiers.getModifiers-1.T-4">T</a><spanclass="tsd-signature-symbol">[]</span><ahref="#getModifiers.getModifiers-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>Get all of the modifiers that match <code>modifierType</code></p>
</div><sectionclass="tsd-panel"><h4>Type Parameters</h4><ulclass="tsd-type-parameter-list"><li><span><aid="getModifiers.getModifiers-1.T-4"class="tsd-anchor"></a><spanclass="tsd-kind-type-parameter">T</span><spanclass="tsd-signature-keyword"> extends </span><ahref="modifier_modifier.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a></span></li></ul></section><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">modifierType</span>: <ahref="../types/utils.Constructor.html"class="tsd-signature-type tsd-kind-type-alias">Constructor</a><spanclass="tsd-signature-symbol"><</span><aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#getModifiers.getModifiers-1.T-4">T</a><spanclass="tsd-signature-symbol">></span></span><divclass="tsd-comment tsd-typography"><p>The type of modifier to apply; must extend <ahref="modifier_modifier.PersistentModifier.html"class="tsd-kind-class"><code>PersistentModifier</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">player</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Whether to search the player (<code>true</code>) or the enemy (<code>false</code>); Defaults to <code>true</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <aclass="tsd-signature-type tsd-kind-type-parameter"href="battle_scene.default.html#getModifiers.getModifiers-1.T-4">T</a><spanclass="tsd-signature-symbol">[]</span></h4><p>the list of all modifiers that matched <code>modifierType</code>.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">canBypass</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>optional boolean to indicate that the request is coming from a function that needs to access a Mystery Encounter outside of gameplay requirements</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <ahref="data_mystery_encounters_mystery_encounter.default.html"class="tsd-signature-type tsd-kind-class">default</a></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L3267">src/battle-scene.ts:3267</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getPlayerField"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Player<wbr/>Field</span><ahref="#getPlayerField"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="getPlayerField.getPlayerField-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Player<wbr/>Field</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><spanclass="tsd-signature-symbol">[]</span><ahref="#getPlayerField.getPlayerField-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>Returns an array of PlayerPokemon of length 1 or 2 depending on if in a double battle or not.
</div><h4class="tsd-returns-title">Returns <ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><spanclass="tsd-signature-symbol">[]</span></h4><p>array of <ahref="field_pokemon.PlayerPokemon.html"class="tsd-kind-class"><code>PlayerPokemon</code></a></p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">undefined</span><spanclass="tsd-signature-symbol"> | </span><ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a></h4><p>The first <ahref="field_pokemon.PlayerPokemon.html"class="tsd-kind-class"><code>PlayerPokemon</code></a> that is <ahref="battle_scene.default.html#getPlayerField"class="tsd-kind-method"><code>on the field</code></a>
and <ahref="field_pokemon.default.html#isActive"class="tsd-kind-method"><code>is active</code></a>
(aka <ahref="field_pokemon.default.html#isAllowedInBattle"class="tsd-kind-method"><code>is allowed in battle</code></a>),
or <code>undefined</code> if there are no valid pokemon</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L790">src/battle-scene.ts:790</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getPokemonAllowedInBattle"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Pokemon<wbr/>Allowed<wbr/>In<wbr/>Battle</span><ahref="#getPokemonAllowedInBattle"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="getPokemonAllowedInBattle.getPokemonAllowedInBattle-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Pokemon<wbr/>Allowed<wbr/>In<wbr/>Battle</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><spanclass="tsd-signature-symbol">[]</span><ahref="#getPokemonAllowedInBattle.getPokemonAllowedInBattle-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"><h4class="tsd-returns-title">Returns <ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><spanclass="tsd-signature-symbol">[]</span></h4><p>An array of <ahref="field_pokemon.PlayerPokemon.html"class="tsd-kind-class"><code>PlayerPokemon</code></a> filtered from the player's party
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2469">src/battle-scene.ts:2469</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="preload"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>preload</span><ahref="#preload"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="preload.preload-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">preload</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#preload.preload-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"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span></h4><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L348">src/battle-scene.ts:348</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="prependToPhase"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>prepend<wbr/>To<wbr/>Phase</span><ahref="#prependToPhase"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="prependToPhase.prependToPhase-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">prepend<wbr/>To<wbr/>Phase</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phase</span>, <spanclass="tsd-kind-parameter">targetPhase</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#prependToPhase.prependToPhase-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>Tries to add the input phase to index before target phase in the phaseQueue, else simply calls unshiftPhase()</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">phase</span>: <ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a></span><divclass="tsd-comment tsd-typography"><p><ahref="phase.Phase.html"class="tsd-kind-class"><code>Phase</code></a> the phase to be added</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">targetPhase</span>: <ahref="../types/utils.Constructor.html"class="tsd-signature-type tsd-kind-type-alias">Constructor</a><spanclass="tsd-signature-symbol"><</span><ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a><spanclass="tsd-signature-symbol">></span></span><divclass="tsd-comment tsd-typography"><p><ahref="phase.Phase.html"class="tsd-kind-class"><code>Phase</code></a> the type of phase to search for in phaseQueue</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>boolean if a targetPhase was found and added</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2435">src/battle-scene.ts:2435</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="processInfoButton"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>process<wbr/>Info<wbr/>Button</span><ahref="#processInfoButton"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="processInfoButton.processInfoButton-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">process<wbr/>Info<wbr/>Button</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pressed</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#processInfoButton.processInfoButton-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-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pressed</span>: <spanclass="tsd-signature-type">boolean</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L1614">src/battle-scene.ts:1614</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="pushConditionalPhase"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>push<wbr/>Conditional<wbr/>Phase</span><ahref="#pushConditionalPhase"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="pushConditionalPhase.pushConditionalPhase-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">push<wbr/>Conditional<wbr/>Phase</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phase</span>, <spanclass="tsd-kind-parameter">condition</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#pushConditionalPhase.pushConditionalPhase-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>Adds a phase to the conditional queue and ensures it is executed only when the specified condition is met.</p>
<p>This method allows deferring the execution of a phase until certain conditions are met, which is useful for handling
situations like abilities and entry hazards that depend on specific game states.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">phase</span>: <ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a></span><divclass="tsd-comment tsd-typography"><p>The phase to be added to the conditional queue.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">condition</span>: <spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol"> =></span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol">)</span></span><divclass="tsd-comment tsd-typography"><p>A function that returns a boolean indicating whether the phase should be executed.</p>
</div><divclass="tsd-comment tsd-typography"></div><ulclass="tsd-parameters"><liclass="tsd-parameter-signature"><ulclass="tsd-signatures"><liclass="tsd-signature"><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2276">src/battle-scene.ts:2276</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="pushPhase"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>push<wbr/>Phase</span><ahref="#pushPhase"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="pushPhase.pushPhase-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">push<wbr/>Phase</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phase</span>, <spanclass="tsd-kind-parameter">defer</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#pushPhase.pushPhase-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>Adds a phase to nextCommandPhaseQueue, as long as boolean passed in is false</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">phase</span>: <ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a></span><divclass="tsd-comment tsd-typography"><p><ahref="phase.Phase.html"class="tsd-kind-class"><code>Phase</code></a> the phase to add</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">defer</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = false</span></span><divclass="tsd-comment tsd-typography"><p>boolean on which queue to add to, defaults to false, and adds to phaseQueue</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">message</span>: <spanclass="tsd-signature-type">string</span></span><divclass="tsd-comment tsd-typography"><p>string for MessagePhase</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">callbackDelay</span>: <spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>optional param for MessagePhase constructor</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">prompt</span>: <spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>optional param for MessagePhase constructor</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">promptDelay</span>: <spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>optional param for MessagePhase constructor</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">defer</span>: <spanclass="tsd-signature-type">null</span><spanclass="tsd-signature-symbol"> | </span><spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>boolean for which queue to add it to, false -> add to PhaseQueuePrepend, true -> nextCommandPhaseQueue</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2455">src/battle-scene.ts:2455</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="randBattleSeedInt"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>rand<wbr/>Battle<wbr/>Seed<wbr/>Int</span><ahref="#randBattleSeedInt"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="randBattleSeedInt.randBattleSeedInt-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">rand<wbr/>Battle<wbr/>Seed<wbr/>Int</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">range</span>, <spanclass="tsd-kind-parameter">min</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><ahref="#randBattleSeedInt.randBattleSeedInt-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>Generates a random number using the current battle's seed</p>
<p>This calls <ahref="battle.default.html#randSeedInt"class="tsd-kind-method"><code>Battle.randSeedInt</code></a>(<code>scene</code>, range, min) in <code>src/battle.ts</code>
which calls <ahref="../functions/utils.randSeedInt.html"class="tsd-kind-function"><code>randSeedInt</code></a>(range, min) in <code>src/utils.ts</code></p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">range</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>How large of a range of random numbers to choose from. If range <= 1, returns min</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">number</span></h4><p>A random integer between min and (min + range - 1)</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">removedPokemon</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> the pokemon that is being removed from the field (flee, faint), moves to be redirected FROM</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">allyPokemon</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> the pokemon that will have the moves be redirected TO</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L845">src/battle-scene.ts:845</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="removeModifier"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>remove<wbr/>Modifier</span><ahref="#removeModifier"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="removeModifier.removeModifier-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">remove<wbr/>Modifier</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">modifier</span>, <spanclass="tsd-kind-parameter">enemy</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#removeModifier.removeModifier-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>Removes a currently owned item. If the item is stacked, the entire item stack
gets removed. This function does NOT apply in-battle effects, such as Unburden.
If in-battle effects are needed, use <ahref="field_pokemon.default.html#loseHeldItem"class="tsd-kind-method"><code>Pokemon.loseHeldItem</code></a> instead.</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.PersistentModifier.html"class="tsd-signature-type tsd-kind-class">PersistentModifier</a></span><divclass="tsd-comment tsd-typography"><p>The item to be removed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">enemy</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = false</span></span><divclass="tsd-comment tsd-typography"><p>If <code>true</code>, remove an item owned by the enemy. If <code>false</code>, remove an item owned by the player. Default is <code>false</code>.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p><code>true</code> if the item exists and was successfully removed, <code>false</code> otherwise.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2839">src/battle-scene.ts:2839</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="removePartyMemberModifiers"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>remove<wbr/>Party<wbr/>Member<wbr/>Modifiers</span><ahref="#removePartyMemberModifiers"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="removePartyMemberModifiers.removePartyMemberModifiers-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">remove<wbr/>Party<wbr/>Member<wbr/>Modifiers</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">partyMemberIndex</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#removePartyMemberModifiers.removePartyMemberModifiers-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-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">partyMemberIndex</span>: <spanclass="tsd-signature-type">number</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span></h4><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2681">src/battle-scene.ts:2681</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="removePokemonFromPlayerParty"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>remove<wbr/>Pokemon<wbr/>From<wbr/>Player<wbr/>Party</span><ahref="#removePokemonFromPlayerParty"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="removePokemonFromPlayerParty.removePokemonFromPlayerParty-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">remove<wbr/>Pokemon<wbr/>From<wbr/>Player<wbr/>Party</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">destroy</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#removePokemonFromPlayerParty.removePokemonFromPlayerParty-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>Removes a <ahref="field_pokemon.PlayerPokemon.html"class="tsd-kind-class"><code>PlayerPokemon</code></a> from the party, and clears modifiers for that Pokemon's id
Useful for MEs/Challenges that remove Pokemon from the player party temporarily or permanently</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="field_pokemon.PlayerPokemon.html"class="tsd-signature-type tsd-kind-class">PlayerPokemon</a></span><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">destroy</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>Default true. If true, will destroy the <ahref="field_pokemon.PlayerPokemon.html"class="tsd-kind-class"><code>PlayerPokemon</code></a> after removing</p>
If the recepient already has the maximum amount allowed for this item, the transfer is cancelled.
The quantity to transfer is automatically capped at how much the recepient can take before reaching the maximum stack size for the item.
A transfer that moves a quantity smaller than what is specified in the transferQuantity parameter is still considered successful.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">itemModifier</span>: <ahref="modifier_modifier.PokemonHeldItemModifier.html"class="tsd-signature-type tsd-kind-class">PokemonHeldItemModifier</a></span><divclass="tsd-comment tsd-typography"><p><ahref="modifier_modifier.PokemonHeldItemModifier.html"class="tsd-kind-class"><code>PokemonHeldItemModifier</code></a> item to transfer (represents the whole stack)</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> recepient in this transfer</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">playSound</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p><code>true</code> to play a sound when transferring the item</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">transferQuantity</span>: <spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol"> = 1</span></span><divclass="tsd-comment tsd-typography"><p>How many items of the stack to transfer. Optional, defaults to <code>1</code></p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">itemLost</span>: <spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol"> = true</span></span><divclass="tsd-comment tsd-typography"><p>If <code>true</code>, treat the item's current holder as losing the item (for now, this simply enables Unburden). Default is <code>true</code>.</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><code>true</code> if the transfer was successful</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2619">src/battle-scene.ts:2619</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="unshiftPhase"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>unshift<wbr/>Phase</span><ahref="#unshiftPhase"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="unshiftPhase.unshiftPhase-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">unshift<wbr/>Phase</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phase</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#unshiftPhase.unshiftPhase-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>Adds Phase to the end of phaseQueuePrepend, or at phaseQueuePrependSpliceIndex</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">phase</span>: <ahref="phase.Phase.html"class="tsd-signature-type tsd-kind-class">Phase</a></span><divclass="tsd-comment tsd-typography"><p><ahref="phase.Phase.html"class="tsd-kind-class"><code>Phase</code></a> the phase to add</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/dd904fe7827eb2695c5362f0864e32d58df10c6c/src/battle-scene.ts#L2293">src/battle-scene.ts:2293</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="update"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>update</span><ahref="#update"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="update.update-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">update</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#update.update-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>This method should be overridden by your own Scenes.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">duration</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>The time for this label to fade in, if it is not already visible.</p>