diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index c58be8a23d6..06e01029d3a 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1913,7 +1913,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { if (!this.shiny || (!variantData.hasOwnProperty(variantDataIndex) && !variantData.hasOwnProperty(this.species.speciesId))) { return 0; } - const rand = new Utils.IntegerHolder(0); + const rand = new Utils.NumberHolder(0); this.scene.executeWithSeedOffset(() => { rand.value = Utils.randSeedInt(10); }, this.id, this.scene.waveSeed); diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 10f31b63353..31a9ef2664a 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -2444,11 +2444,11 @@ export class ModifierTypeOption { /** * Calculates the team's luck value. * @param party The player's party. - * @returns A value between 0 and 14, or 0 if the player is in Daily Run mode. + * @returns A number between 0 and 14 based on the party's total luck value, or a random number between 0 and 14 if the player is in Daily Run mode. */ export function getPartyLuckValue(party: Pokemon[]): integer { if (party[0].scene.gameMode.isDaily) { - const DailyLuck = new Utils.IntegerHolder(0); + const DailyLuck = new Utils.NumberHolder(0); party[0].scene.executeWithSeedOffset(() => { DailyLuck.value = Utils.randSeedInt(15); // Random number between 0 and 14 }, 0, party[0].scene.seed); diff --git a/src/test/utils/helpers/modifiersHelper.ts b/src/test/utils/helpers/modifiersHelper.ts index c8bb80d6566..c38bf5770a8 100644 --- a/src/test/utils/helpers/modifiersHelper.ts +++ b/src/test/utils/helpers/modifiersHelper.ts @@ -15,13 +15,6 @@ export class ModifierHelper extends GameManagerHelper { return this; } - checkHasRun(modifier: ModifierTypeKeys): boolean { - if (itemPoolChecks.get(modifier) === undefined) { - return false; - } - return true; - } - /** * `get`s a value from the `itemPoolChecks` map. *