</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/data_pokemon_species.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/data_pokemon_species.default.html"class="tsd-kind-class">PokemonSpecies</a> The pokemon to check the validity of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">valid</span>: <ahref="../classes/utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">dexAttr</span>: <ahref="../interfaces/system_game_data.DexAttrProps.html"class="tsd-signature-type tsd-kind-interface">DexAttrProps</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../interfaces/system_game_data.DexAttrProps.html"class="tsd-kind-interface">DexAttrProps</a> The dex attributes of the pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">soft</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>boolean If true, allow it if it could become a valid pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L778">src/data/challenge.ts:778</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">points</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-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 challenges that modify available total starter points.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">points</span>: <ahref="../classes/utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.NumberHolder.html"class="tsd-kind-class">Utils.NumberHolder</a> The amount of points you have available.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L786">src/data/challenge.ts:786</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-2"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">species</span>, <spanclass="tsd-kind-parameter">cost</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-2"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 challenges that modify the cost of a starter.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">species</span>: <ahref="../enums/enums_species.Species.html"class="tsd-signature-type tsd-kind-enum">Species</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_species.Species.html"class="tsd-kind-enum">Species</a> The pokemon to change the cost of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">cost</span>: <ahref="../classes/utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L795">src/data/challenge.ts:795</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-3"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-3"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 challenges that modify a starter after selection.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The starter pokemon to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L803">src/data/challenge.ts:803</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-4"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">valid</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-4"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 challenges that what pokemon you can have in battle.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon to check the validity of.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">valid</span>: <ahref="../classes/utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> A BooleanHolder, the value gets set to false if the pokemon isn't allowed.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L812">src/data/challenge.ts:812</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-5"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">waveIndex</span>, <spanclass="tsd-kind-parameter">battleConfig</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-5"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 challenges that modify what fixed battles there are.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">waveIndex</span>: <spanclass="tsd-signature-type">Number</span></span><divclass="tsd-comment tsd-typography"><p>Number The current wave index.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">battleConfig</span>: <ahref="../classes/battle.FixedBattleConfig.html"class="tsd-signature-type tsd-kind-class">FixedBattleConfig</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/battle.FixedBattleConfig.html"class="tsd-kind-class">FixedBattleConfig</a> The battle config to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L821">src/data/challenge.ts:821</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-6"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">effectiveness</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-6"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 challenges that modify type effectiveness.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class"><code>GameMode</code></a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">effectiveness</span>: <ahref="../classes/utils.NumberHolder.html"class="tsd-signature-type tsd-kind-class">NumberHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.NumberHolder.html"class="tsd-kind-class"><code>Utils.NumberHolder</code></a> The current effectiveness of the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L829">src/data/challenge.ts:829</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-7"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">level</span>, <spanclass="tsd-kind-parameter">levelCap</span>, <spanclass="tsd-kind-parameter">isTrainer</span>, <spanclass="tsd-kind-parameter">isBoss</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-7"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 challenges that modify what level AI are.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The generated level of the pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">levelCap</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>Number The maximum level cap for the current wave.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isTrainer</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Boolean Whether this is a trainer pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">isBoss</span>: <spanclass="tsd-signature-type">boolean</span></span><divclass="tsd-comment tsd-typography"><p>Boolean Whether this is a non-trainer boss pokemon.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L840">src/data/challenge.ts:840</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-8"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSlots</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-8"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 challenges that modify how many move slots the AI has.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon being considered.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSlots</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The amount of move slots.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L849">src/data/challenge.ts:849</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-9"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">hasPassive</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-9"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 challenges that modify whether a pokemon has its passive.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> The pokemon to modify.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">hasPassive</span>: <ahref="../classes/utils.BooleanHolder.html"class="tsd-signature-type tsd-kind-class">BooleanHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.BooleanHolder.html"class="tsd-kind-class">Utils.BooleanHolder</a> Whether it has its passive.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L858">src/data/challenge.ts:858</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-10"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-10"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 challenges that modify the game modes settings.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L865">src/data/challenge.ts:865</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-11"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSource</span>, <spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">level</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-11"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 challenges that modify what level a pokemon can access a move.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSource</span>: <ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="../enums/enums_moves.Moves.html"class="tsd-signature-type tsd-kind-enum">Moves</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_moves.Moves.html"class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">level</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The level threshold for access.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/357056ebebf8893c797cd72ef36877756b89a28b/src/data/challenge.ts#L876">src/data/challenge.ts:876</a></li></ul></aside></li><liclass="tsd-signature tsd-anchor-link"><aid="applyChallenges-12"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">apply<wbr/>Challenges</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">gameMode</span>, <spanclass="tsd-kind-parameter">challengeType</span>, <spanclass="tsd-kind-parameter">pokemon</span>, <spanclass="tsd-kind-parameter">moveSource</span>, <spanclass="tsd-kind-parameter">move</span>, <spanclass="tsd-kind-parameter">weight</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#applyChallenges-12"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 challenges that modify what weight a pokemon gives to move generation</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">gameMode</span>: <ahref="../classes/game_mode.GameMode.html"class="tsd-signature-type tsd-kind-class">GameMode</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/game_mode.GameMode.html"class="tsd-kind-class">GameMode</a> The current gameMode</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">pokemon</span>: <ahref="../classes/field_pokemon.default.html"class="tsd-signature-type tsd-kind-class">default</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/field_pokemon.default.html"class="tsd-kind-class">Pokemon</a> What pokemon would learn the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">moveSource</span>: <ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-signature-type tsd-kind-enum">MoveSourceType</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/data_challenge.MoveSourceType.html"class="tsd-kind-enum">MoveSourceType</a> What source the pokemon would get the move from.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">move</span>: <ahref="../enums/enums_moves.Moves.html"class="tsd-signature-type tsd-kind-enum">Moves</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../enums/enums_moves.Moves.html"class="tsd-kind-enum">Moves</a> The move in question.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">weight</span>: <ahref="../classes/utils.IntegerHolder.html"class="tsd-signature-type tsd-kind-class">IntegerHolder</a></span><divclass="tsd-comment tsd-typography"><p><ahref="../classes/utils.IntegerHolder.html"class="tsd-kind-class">Utils.IntegerHolder</a> The weight of the move.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if any challenge was successfully applied.</p>