Implements

Constructors

Properties

attrs: AbAttr[]
conditions: AbAttrCondition[]
description: string
generation: number
isBypassFaint: boolean
isIgnorable: boolean
name: string
nameAppend: string

Methods

  • Type Parameters

    • T extends (new (...args) => AbAttr)

    Parameters

    • condition: AbAttrCondition
    • AttrType: T
    • Rest ...args: ConstructorParameters<T>

    Returns Ability

  • Get all ability attributes that match attrType

    Type Parameters

    Parameters

    • attrType: (new (...args) => T)

      any attribute that extends AbAttr

        • new (...args): T
        • Parameters

          • Rest ...args: any[]

          Returns T

    Returns T[]

    Array of attributes that match attrType, Empty Array if none match.

  • Check if an ability has an attribute that matches attrType

    Type Parameters

    Parameters

    • attrType: (new (...args) => T)

      any attribute that extends AbAttr

        • new (...args): T
        • Parameters

          • Rest ...args: any[]

          Returns T

    Returns boolean

    true if the ability has attribute attrType