pokemon-rogue-battle
    Preparing search index...

    Class RedirectMoveAbAttr

    Redirects a move to the pokemon with this ability if it meets the conditions

    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: BooleanHolder
      • args: any[]

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

      Returns void

    • Parameters

      • pokemon: default

        The Pokemon with the redirection ability

      • passive: boolean
      • simulated: boolean
      • args: any[]

        The args passed to the AbAttr:

        • [0] - The id of the Move used
        • [1] - The target's battler index (before redirection)
        • [2] - The Pokemon that used the move being redirected

      Returns boolean