PokéRogue
    Preparing search index...

    Interface AiMovegenMoveStatsAbAttrParams

    Parameters for ability attributes that modify move stats during AI move generation.

    Ability attributes should modify the parameters here to indicate that they modify the move's power or accuracy unconditionally

    interface AiMovegenMoveStatsAbAttrParams {
        accMult: NumberHolder;
        instantCharge: BooleanHolder;
        maxMultiHit: BooleanHolder;
        move: Move;
        passive?: boolean;
        pokemon: Pokemon;
        powerMult: NumberHolder;
        simulated?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    accMult: NumberHolder

    Multiplier for move accuracy

    instantCharge: BooleanHolder

    True if the move does not charge due to the ability

    maxMultiHit: BooleanHolder

    Indicate the multi-hit move power check should be skipped.

    move: Move

    The move being evaluated

    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

    powerMult: NumberHolder

    Multiplier for move power

    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