diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index e4e47fb62e7..0dd6368bf31 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -407,11 +407,21 @@ export class DoubleBattleChanceBoosterModifierType extends ModifierType { } } +/** + * Class representing a ModifierType for a Modifier that prevents Double Battles from occurring. + * @extends ModifierType + */ export class DoubleBattleChancePreventerModifierType extends ModifierType { public battleCount: integer; + /** + * Instantiates the ModifierType + * @param {string} localeKey - Used to grab the appropriate language texts + * @param {string} iconImage - Used to grab the appropriate icon + * @param {integer} battleCount - Represents how long the modifier should exist for + */ constructor(localeKey: string, iconImage: string, battleCount: integer) { - super(localeKey, iconImage, (_type, _args) => new Modifiers.DoubleBattleChancePreventerModifier(this, this.battleCount), 'lure'); + super(localeKey, iconImage, (_type, _args) => new Modifiers.DoubleBattleChancePreventerModifier(this, this.battleCount), 'repel'); this.battleCount = battleCount; } @@ -1767,4 +1777,4 @@ export function getLuckString(luckValue: integer): string { export function getLuckTextTint(luckValue: integer): integer { const modifierTier = luckValue ? luckValue > 2 ? luckValue > 5 ? luckValue > 9 ? luckValue > 11 ? ModifierTier.LUXURY : ModifierTier.MASTER : ModifierTier.ROGUE : ModifierTier.ULTRA : ModifierTier.GREAT : ModifierTier.COMMON; return getModifierTierTextTint(modifierTier); -} \ No newline at end of file +}