• The first combatant whose token is one of an actor's tokens.

    Scans combatants in order and returns the first whose tokenId is in tokenIds, or null when none match. Combatants with a null tokenId are skipped.

    Type Parameters

    Parameters

    • combatants: readonly T[]

      The combat's combatants, in turn order.

    • tokenIds: ReadonlySet<string>

      The ids of the actor's tokens (see selectActorTokens).

    Returns T | null

    The first matching combatant, or null.