Skip to content

Commit

Permalink
[Beta P1] Fix rare candy crashing (#4561)
Browse files Browse the repository at this point in the history
  • Loading branch information
flx-sta authored Oct 3, 2024
1 parent 76e25a6 commit 46c8415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modifier/modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ export class PokemonLevelIncrementModifier extends ConsumablePokemonModifier {
* @param levelCount The amount of levels to increment
* @returns always `true`
*/
override apply(playerPokemon: PlayerPokemon, levelCount: NumberHolder): boolean {
override apply(playerPokemon: PlayerPokemon, levelCount: NumberHolder = new NumberHolder(1)): boolean {
playerPokemon.scene.applyModifiers(LevelIncrementBoosterModifier, true, levelCount);

playerPokemon.level += levelCount.value;
Expand Down

0 comments on commit 46c8415

Please sign in to comment.