• A hook event that fires when a token's resource bar attribute has been modified. modifyTokenAttribute

    Parameters

    • data: {
          attribute: string;
          value: number;
          isDelta: boolean;
          isBar: boolean;
      }

      An object describing the modification

      • attribute: string

        The attribute path

      • value: number

        The target attribute value

      • isDelta: boolean

        Does number represents a relative change (true) or an absolute change (false)

      • isBar: boolean

        Whether the new value is part of an attribute bar, or just a direct value

    • updates: objects

      The update delta that will be applied to the Token's actor

    Returns void