Hierarchy

  • Combat
    • CombatPF

Constructors

  • Parameters

    • Optional data: any

      Initial data provided to construct the Combat document

    • Optional context: any

    Returns CombatPF

Methods

  • Expire active effects & buffs.

    Parameters

    • data: object

      Update data

    • options: any

      Context options

    • userId: string

      Triggering user ID

    Returns Promise<void>

  • Parameters

    • data: object

      Update data

    • options: any

      Context options

    • userId: string

      Triggering user ID

    Returns void

  • Parameters

    • ids: string[]

      Combatant IDs to roll initiative for.

    • Optional options: {
          bonus: undefined | string;
          rollMode: undefined | string;
          skipDialog: undefined | boolean;
      } = {}

      Additional options

      • bonus: undefined | string

        Formula for bonus to initiative

      • rollMode: undefined | string

        Roll mode override

      • skipDialog: undefined | boolean

        Skip roll dialog

    Returns Promise<CombatPF | {
        combat: CombatPF;
        messages: any;
    }>

  • Parameters

    • options: {
          bonus: string;
          formula: string;
          name: string;
      } = {}
      • bonus: string

        Bonus formula override

      • formula: string

        Formula override

      • name: string

        Name of the roller

    Returns object

Generated using TypeDoc