pokemon-rogue-battle
    Preparing search index...

    Class for abilities that convert single-strike moves to two-strike moves (i.e. Parental Bond).

    the damage multiplier for the second strike, relative to the first.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    showAbility: boolean

    Methods

    • Applies ability effects without checking conditions

      Parameters

      • _pokemon: default

        The pokemon to apply this ability to

      • _passive: boolean

        Whether or not the ability is a passive

      • _simulated: boolean

        Whether the call is simulated

      • _cancelled: null | BooleanHolder
      • _args: any[]

        Extra args passed to the function. Handled by child classes.

      Returns void

    • If conditions are met, this doubles the move's hit count (via args[1]) or multiplies the damage of secondary strikes (via args[2])

      Parameters

      • pokemon: default

        the Pokemon using the move

      • passive: boolean

        n/a

      • simulated: boolean
      • defender: default

        n/a

      • move: default

        the Move used by the ability source

      • args: any[]

        Additional arguments:

        • [0] the number of strikes this move currently has (NumberHolder)
        • [1] the damage multiplier for the current strike (NumberHolder)

      Returns void

    • Returns a boolean describing whether the ability can be applied under current conditions

      Parameters

      • _pokemon: default

        The pokemon to apply this ability to

      • _passive: boolean

        Whether or not the ability is a passive

      • _simulated: boolean

        Whether the call is simulated

      • _args: any[]

        Extra args passed to the function. Handled by child classes.

      Returns boolean

      true if the ability can be applied, false otherwise

      apply