PokéRogue
    Preparing search index...
    • Matcher that checks if a Pokemon has taken a specific amount of damage. Unless specified, will run the expected damage value through toDmgValue to round it down and make it a minimum of 1.

      Parameters

      • this: MatcherState
      • received: unknown

        The object to check. Should be a Pokemon.

      • expectedDamageTaken: number

        The expected amount of damage the Pokemon has taken

      • roundDown: boolean = true

        Whether to round down expectedDamageTaken with toDmgValue; default true

      Returns SyncExpectationResult

      Whether the matcher passed