diff --git a/src/module/actor/actor.ts b/src/module/actor/actor.ts index c1ab2402..82377350 100644 --- a/src/module/actor/actor.ts +++ b/src/module/actor/actor.ts @@ -113,7 +113,7 @@ export class DS4Actor extends Actor { } // Expand the set of final overrides - this.overrides = expandObject({ ...flattenObject(this.overrides), ...overrides }); + this.overrides = foundry.utils.expandObject({ ...foundry.utils.flattenObject(this.overrides), ...overrides }); } protected getOriginatingItemOfActiveEffect(effect: ActiveEffect): DS4Item | undefined { @@ -284,7 +284,7 @@ export class DS4Actor extends Actor { isDelta = false, isBar = true, ): Promise { - const current = getProperty(this.data.data, attribute); + const current = foundry.utils.getProperty(this.data.data, attribute); // Determine the updates to make to the actor data let updates: Record; diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index ab884648..71a00e2b 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -169,7 +169,7 @@ export class DS4ActorSheet extends ActorSheet = Record * @override */ async render(chatOptions: Parameters[0] = {}): Promise { - chatOptions = mergeObject( + chatOptions = foundry.utils.mergeObject( { user: game.user?.id, flavor: null,