Added environments (#537)

This commit is contained in:
WBHarry 2025-08-03 14:33:54 +02:00 committed by GitHub
parent ef42f1f782
commit 7ead70b723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 5951 additions and 152 deletions

View file

@ -93,7 +93,7 @@ export default class DHEnvironmentSettings extends DHBaseActorSettings {
const adversaries = foundry.utils.getProperty(this.actor, path);
const newAdversaries = adversaries.filter(a => a.uuid !== doc.uuid);
await this.actor.update({ [path]: newAdversaries });
await this.actor.update({ [path]: newAdversaries.map(x => x.uuid) });
}
async _onDragStart(event) {