pokemon-rogue-battle
    Preparing search index...

    Battler tag enabling the Stockpile mechanic. This tag handles:

    • Stack tracking, including max limit enforcement (which is replicated in Stockpile for redundancy).

    • Stat changes on adding a stack. Adding a stockpile stack attempts to raise the pokemon's DEF and SPDEF by +1.

    • Stat changes on removal of (all) stacks.

      • Removing stacks decreases DEF and SPDEF, independently, by one stage for each stack that successfully changed the stat when added.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isBatonPassable: boolean
    lapseTypes: BattlerTagLapseType[]
    sourceId?: number
    sourceMove: Moves
    statChangeCounts: { "2": number; "4": number } = ...
    stockpiledCount: number = 0
    turnCount: number

    Methods

    • Load the data for a given BattlerTag or JSON representation thereof. Should be inherited from by any battler tag with custom attributes.

      Parameters

      • source: any

        The battler tag to load

      Returns void

    • Adds a stockpile stack to a pokemon, up to a maximum of 3 stacks. Note that onOverlap defers to this method.

      If a stack is added, a message is displayed and the pokemon's DEF and SPDEF are increased by 1. For each stat, an internal counter is incremented (by 1) if the stat was successfully changed.

      Parameters

      Returns void

    • Removing the tag removes all stacks, and the pokemon's DEF and SPDEF are decreased by one stage for each stack which had successfully changed that particular stat during onAdd.

      Parameters

      Returns void