PokéRogue
    Preparing search index...

    Builder class for creating new Ability instances.

    Index

    Constructors

    Properties

    attrs: AbAttr[] = []
    conditions: AbAttrCondition[] = []
    flags: number = 0
    generation: number

    The generation the ability was introduced

    postSummonPriority: number

    Methods

    • Make this ability trigger even if the user faints.

      Returns this

      this

      This is also required for abilities to trigger when revived via Reviver Seed.

    • Mark an ability as having one or more edge cases. It may lack certain niche interactions with other moves/abilities, but still functions as intended in most cases. Does not show up in game and is solely for internal dev use.

      When using this, make sure to document the edge case (or else this becomes pointless).

      Returns this

      this

    • Mark an ability as partially implemented. Partial abilities are expected to have some of their core functionality implemented, but may lack certain notable features or interactions with other moves or abilities.

      Returns this

      this

    • Mark an ability as unimplemented. Unimplemented abilities are ones which have none of their basic functionality enabled.

      Returns this

      this

    • Make this ability unreplaceable by effects like MoveId.SIMPLE_BEAM | Simple Beam or MoveId.ENTRAINMENT | Entrainment.

      Returns this

      this