pokemon-rogue-battle
    Preparing search index...

    Interface PreStatStageChangeAbAttrParams

    Base set of parameters passed to every ability attribute's apply method.

    Extended by sub-classes to contain additional parameters pertaining to the ability type(s) being triggered.

    interface PreStatStageChangeAbAttrParams {
        cancelled: BooleanHolder;
        passive?: boolean;
        pokemon: Pokemon;
        simulated?: boolean;
        source?: Pokemon;
        stages: number;
        stat: ATK | DEF | SPATK | SPDEF | SPD | ACC | EVA;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cancelled: BooleanHolder

    Holder that will be set to true if the stat stage change should be cancelled due to the ability

    passive?: boolean

    (For callers of applyAbAttrs): If provided, only apply ability attributes of the passive (true) or active (false).

    This should almost always be left undefined, as otherwise it will only apply attributes of either the pokemon's passive (true) or non-passive (false) ability. In almost all cases, you want to apply attributes that are from either.

    (For implementations of AbAttr): This will never be undefined, and will be true if the ability being applied is the pokemon's passive, and false otherwise.

    pokemon: Pokemon

    The pokemon that has the ability being applied

    simulated?: boolean

    Whether the ability's effects are being simulated (for instance, during AI damage calculations).

    Used to prevent message flyouts and other effects from being triggered.

    false

    source?: Pokemon

    The source of the stat stage drop. May be omitted if the source of the stat drop is the user itself.

    Currently, only used by ReflectStatStageChangeAbAttr in order to reflect the stat stage change

    stages: number

    The amount of stages to change by (negative if the stat is being decreased)

    stat: ATK | DEF | SPATK | SPDEF | SPD | ACC | EVA

    The stat being affected by the stat stage change