Hierarchy (view full)

Constructors

Properties

accuracy: number
attrs: MoveAttr[]
category: MoveCategory
chance: number
effect: string
generation: number
id: Moves
moveTarget: MoveTarget
name: string
power: number
pp: number
priority: number
type: Type

Methods

  • Type Parameters

    Parameters

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

    Returns this

  • Get all move attributes that match attrType

    Type Parameters

    Parameters

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

      any attribute that extends MoveAttr

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

          • Rest ...args: any[]

          Returns T

    Returns T[]

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

  • Check if a move has an attribute that matches attrType

    Type Parameters

    Parameters

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

      any attribute that extends MoveAttr

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

          • Rest ...args: any[]

          Returns T

    Returns boolean

    true if the move has attribute attrType