Attempts to copy a pokemon's ability

Hierarchy (view full)

Constructors

Properties

showAbility: boolean
targetAbilityName: string
targetName: string

Methods

  • Applies ability post summon (after switching in)

    Parameters

    • pokemon: default

      Pokemon with this ability

    • passive: boolean

      Whether this ability is a passive

    • args: any[]

      Set of unique arguments needed by this attribute

    Returns boolean

    true if application of the ability succeeds