pokemon-rogue-battle
    Preparing search index...

    Class SuppressAbilitiesIfActedAttr

    Applies the effects of SuppressAbilitiesAttr if the target has already moved this turn.

    Moves.CORE_ENFORCER (the move which uses this effect)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    options?: MoveEffectAttrOptions

    A container for this attribute's optional parameters

    MoveEffectAttrOptions for supported params.

    selfTarget: boolean

    Should this Move target the user?

    Accessors

    • get effectChanceOverride(): undefined | number

      If defined, overrides the move's base chance for this secondary effect to trigger.

      Returns undefined | number

    • get firstHitOnly(): boolean

      true if this effect should only trigger on the first hit of multi-hit moves.

      Returns boolean

      false
      
    • get firstTargetOnly(): boolean

      true if this effect should apply only upon hitting a target for the first time when targeting multiple Pokemon.

      Returns boolean

      false
      
    • get lastHitOnly(): boolean

      true if this effect should only trigger on the last hit of multi-hit moves.

      Returns boolean

      false
      

    Methods

    • If the target has already acted this turn, apply a SuppressAbilitiesAttr effect unless the abillity cannot be suppressed. This is a secondary effect and has no bearing on the success or failure of the move.

      Parameters

      Returns boolean

      True if the move occurred, otherwise false. Note that true will be returned even if the target has not yet moved or if the suppression failed to apply.