diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 2925f7945ae..0c72313fc54 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -1061,7 +1061,7 @@ export class ShinyRateBoosterModifier extends PersistentModifier { } apply(args: any[]): boolean { - (args[0] as Utils.IntegerHolder).value = Math.floor(Math.pow((args[0] as Utils.IntegerHolder).value * 0.5, Math.sqrt(this.getStackCount()) + 1)); + (args[0] as Utils.IntegerHolder).value *= Math.pow(2, 5 - this.getStackCount()); return true; }