pokemon-rogue-battle
    Preparing search index...

    Class SynchronizeStatusAbAttr

    If another Pokemon burns, paralyzes, poisons, or badly poisons this Pokemon, that Pokemon receives the same non-volatile status condition as part of this ability attribute. For Synchronize ability.

    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 the StatusEffect that was set is Burn, Paralysis, Poison, or Toxic, and the status was set by a source Pokemon, set the source Pokemon's status to the same StatusEffect.

      Parameters

      • pokemon: default

        Pokemon that status condition was set on.

      • sourcePokemon: null | default = null

        Pokemon that that set the status condition. Is null if status was not set by a Pokemon.

      • passive: boolean

        Whether this ability is a passive.

      • effect: StatusEffect

        StatusEffect that was set.

      • simulated: boolean
      • args: any[]

        Set of unique arguments needed by this attribute.

      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