diff --git a/src/data/pokeball.ts b/src/data/pokeball.ts index 1e271a719f8..a2d45e8636a 100644 --- a/src/data/pokeball.ts +++ b/src/data/pokeball.ts @@ -49,7 +49,7 @@ export function getPokeballName(type: PokeballType): string { return ret; } -export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number { +export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon | null, getBoostedDescription?: boolean): number { const pokemon = enemyPokemon ?? null; const description = getBoostedDescription ?? false; switch (type) { diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 42183148b85..3e1012e13fb 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -181,7 +181,7 @@ class AddPokeballModifierType extends ModifierType { } getDescription(scene: BattleScene): string { - let catchRate: String; + let catchRate: String = ""; if (this.pokeballType === PokeballType.ROGUE_BALL) { catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", { "normalCatchRate": getPokeballCatchMultiplier(this.pokeballType),