chore: fix TS1016* error

[*]  A required parameter cannot follow an optional parameter.
This commit is contained in:
flx-sta 2024-09-30 11:11:01 -07:00
parent 42b2f25e54
commit 568959de54

View File

@ -1109,7 +1109,7 @@ export class PokemonIncrementingStatModifier extends PokemonHeldItemModifier {
* @param statHolder The {@linkcode Utils.NumberHolder} that holds the stat
* @returns `true` if the {@linkcode PokemonBaseStatFlatModifier} should be applied
*/
override shouldApply(pokemon?: Pokemon, stat?: Stat, statHolder: Utils.NumberHolder): boolean {
override shouldApply(pokemon?: Pokemon, stat?: Stat, statHolder?: Utils.NumberHolder): boolean {
return super.shouldApply(pokemon, stat, statHolder) && statHolder instanceof Utils.IntegerHolder;
}