pokemon-rogue-battle
    Preparing search index...

    Class ConditionalProtectTagAbstract

    Class to implement conditional team protection applies protection based on the attributes of incoming moves

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ignoresBypass: boolean

    Whether this protection effect should apply to all moves, including ones that ignore other forms of protection.

    false

    protectConditionFunc: ProtectConditionFunc

    The condition function to determine which moves are negated

    The side of the field that this arena tag affects.

    ArenaTagSide.BOTH

    sourceId: undefined | number

    The PID of the Pokemon having created the tag, or undefined if not set by a Pokemon.

    Implement handling for ArenaTags created by non-pokemon sources (most tags will throw errors without a source)

    sourceMove?: MoveId

    The MoveId that created this tag, or undefined if not set by a move.

    tagType: ArenaTagType

    The type of the arena tag

    turnCount: number

    The tag's remaining duration. Setting to any number <=0 will make the tag's duration effectively infinite.

    Methods

    • Trigger this ArenaTag's effect, reducing its duration as applicable. Will ignore durations of all tags with durations <=0.

      Parameters

      • _arena: Arena

        The Arena at the moment the tag is being lapsed. Unused by default but can be used by sub-classes.

      Returns boolean

      true if this tag should be kept; false if it should be removed.

    • 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

      Type Parameters

      Parameters

      • source: BaseArenaTag & Pick<T, "tagType">

        The arena tag being loaded

      Returns void