Toggle an active effect's disabled state and keep the combat tracker in step.
Enabling a temporary effect while in combat asks for a duration first (the owner's combatant is
found via _findCombatant) and queues it to the tracker. Disabling an enabled effect removes its
tracker entries. Changes go direct when the effect's parent is owned by the current user; otherwise
they are sent over the system socket for the GM to apply. Party-held effects follow the same path.
Config:
effect: the ActiveEffect to toggle. Nothing happens when falsy.
owner: the sheet document that owns the effect row (Actor or Item). Used for the combatant
lookup and the ownership check. Item owners skip the duration prompt.
Parameters
options: {effect:any;owner:any}
Toggle inputs.
effect: any
The active effect to toggle.
owner: any
The owning sheet document (Actor or Item).
Returns Promise<void>
Resolves once the toggle (and any duration prompt) completes or is cancelled.
Toggle an active effect's
disabledstate and keep the combat tracker in step.Enabling a temporary effect while in combat asks for a duration first (the owner's combatant is found via
_findCombatant) and queues it to the tracker. Disabling an enabled effect removes its tracker entries. Changes go direct when the effect's parent is owned by the current user; otherwise they are sent over the system socket for the GM to apply. Party-held effects follow the same path.Config:
effect: the ActiveEffect to toggle. Nothing happens when falsy.owner: the sheet document that owns the effect row (Actor or Item). Used for the combatant lookup and the ownership check. Item owners skip the duration prompt.