pokemon-rogue-battle
    Preparing search index...

    Class PostDefendIllusionBreakAbAttr

    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

    • Destroy the illusion upon taking damage

      Parameters

      • pokemon: default

        The Pokémon with the Illusion ability.

      • passive: boolean

        unused

      • simulated: boolean
      • attacker: default

        The attacking Pokémon.

      • move: default

        The move being used.

      • hitResult: HitResult

        The type of hitResult the pokemon got

      • args: any[]

        unused

      Returns void

      • Whether the illusion was destroyed.
    • 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