Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class CombatPF

    Combat manager extension

    Hierarchy

    • Combat
      • CombatPF
    Index

    Constructors

    • Parameters

      • Optionaldata: CreateData

        Initial data from which to construct the Combat

      • Optionalcontext: ConstructionContext

        Construction context options

      Returns CombatPF

    Accessors

    • get initiative(): undefined | number

      Get current initiative.

      Returns undefined | number

    Methods

    • Internal

      Determine skipped turns

      Parameters

      • from: { round: number; turn: number } = {}

        Origin combat time frame

        • round: number

          From round

        • turn: number

          From turn

      • context: object

        Update context

      Returns Set<Combatant<"base" | ModuleSubType>>

      • Set of combatant IDs whose turn was skipped
    • Internal

      Handle effects of skipped turns.

      Parameters

      • skipped: Set<Combatant<"base" | ModuleSubType>>

        Combatant IDs of those whose turn was skipped.

      • context: object

        Combat update context

      Returns void

    • Parameters

      • changed: any
      • context: any

      Returns boolean

    • Internal

      Handle end of turn

      Parameters

      • originTime: { round: number; turn: number } = {}

        Origin time frame

        • round: number

          Round on which the turn ended

        • turn: number

          Turn that ended

      • context: object = {}

        Context

      Returns Promise<void>

    • Internal

      Process end of durations based on initiative.

      Only active GM processes these to avoid conflicts and logic bloat.

      Parameters

      • Optionalcontext: object = {}

        Update context

      Returns void

    • Process current combatant: expire active effects & buffs.

      Parameters

      • changed: object

        Update data

      • context: options

        Context options

      Returns Promise<void>

    • Parameters

      • Optionaloptions: { bonus?: string; check?: boolean; d20?: string; name: string } = {}

        Additional options

        • Optionalbonus?: string

          Bonus formula override

        • Optionalcheck?: boolean

          If false, no base d20 check is provided

        • Optionald20?: string

          Formula override

        • name: string

          Name of the roller

      Returns Promise<object>

      • Result