pokemon-rogue-battle
    Preparing search index...

    Class ArenaTrapTag

    Abstract class to implement arena traps.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    layers: number
    maxLayers: number
    side: ArenaTagSide = ArenaTagSide.BOTH
    sourceId?: number
    sourceMove?: Moves
    tagType: ArenaTagType
    turnCount: number

    Methods

    • Activates the hazard effect onto a Pokemon when it enters the field

      Parameters

      • _arena: Arena

        the Arena containing this tag

      • simulated: boolean

        if true, only checks if the hazard would activate.

      • pokemon: default

        the Pokemon triggering this hazard

      Returns boolean

      true if this hazard affects the given Pokemon; false otherwise.

    • When given a arena tag or json representing one, load the data for it. This is meant to be inherited from by any arena tag with custom attributes

      Parameters

      • source: any

        An arena tag

      Returns void