pokemon-rogue-battle
    Preparing search index...

    Class SheerColdAccuracyAttr

    Base class defining all Move Attributes

    apply

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    selfTarget: boolean

    Should this Move target the user?

    Methods

    • Changes the normal One Hit KO Accuracy Attr to implement the Gen VII changes, where if the user is Ice-Type, it has more accuracy.

      Parameters

      • user: default

        Pokemon that is using the move; checks the Pokemon's level.

      • target: default

        Pokemon that is receiving the move; checks the Pokemon's level.

      • move: default

        N/A

      • args: any[]

        Uses the accuracy argument, allowing to change it from either 0 if it doesn't pass the first if/else, or 30/20 depending on the type of the user Pokemon.

      Returns boolean

      Returns true if move is successful, false if misses.