PokéRogue
    Preparing search index...
    • Determine the target for the user's counter-attack move

      Parameters

      • user: Pokemon

        The pokemon using the counter-like move

      • OptionaldamageCategory: MoveDamageCategory

        The category of move to counter (physical or special), or undefined to counter both

      Returns null | BattlerIndex

      • The battler index of the most recent, non-ally attacker using a move that matches the specified category, or null if no such attacker exists