Base class defining all Move Effect Attributes

apply

Hierarchy (view full)

Constructors

  • Parameters

    • stats: BattleStat | BattleStat[]
    • levels: number
    • OptionalselfTarget: boolean

      Should this Move target the user?

    • Optionalcondition: MoveConditionFunc
    • showMessage: boolean = true
    • firstHitOnly: boolean = false

      Should this effect only apply on the first hit?

    • moveEffectTrigger: MoveEffectTrigger = MoveEffectTrigger.HIT
    • firstTargetOnly: boolean = false

      Should this effect only apply on the first target hit?

    Returns StatChangeAttr

Properties

firstHitOnly: boolean

Should this effect only apply on the first hit?

firstTargetOnly: boolean

Should this effect only apply on the first target hit?

lastHitOnly: boolean

Should this effect only apply on the last hit?

levels: number
selfTarget: boolean

Should this Move target the user?

stats: BattleStat[]

Defines when this effect should trigger in the move's effect order

Methods

  • Gets the used move's additional effect chance. If user's ability has MoveEffectChanceMultiplierAbAttr or IgnoreMoveEffectsAbAttr modifies the base chance.

    Parameters

    Returns number

    Move chance value.