pokemon-rogue-battle
    Preparing search index...

    Class PreventBypassSpeedChanceAbAttr

    This attribute checks if a Pokemon's move meets a provided condition to determine if the Pokemon can use Quick Claw It was created because Pokemon with the ability Mycelium Might cannot access Quick Claw's benefits when using status moves.

    Hierarchy (View Summary)

    • AbAttr
      • PreventBypassSpeedChanceAbAttr
    Index

    Constructors

    Properties

    showAbility: boolean

    Methods

    • Parameters

      Returns void

      bypassSpeed - determines if a Pokemon is able to bypass speed at the moment

      canCheckHeldItems - determines if a Pokemon has access to Quick Claw's effects or not

    • 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