This commit is contained in:
WBHarry 2025-11-16 01:47:43 +01:00
parent 0dc22e24ca
commit 7e66b5a21d
4 changed files with 13 additions and 25 deletions

View file

@ -85,17 +85,6 @@ export default class DhpActor extends Actor {
this.updateSource({ prototypeToken });
}
/**@inheritdoc */
async _preDelete() {
if (this.parent.parties) {
for (const party of this.parent.parties) {
await party.update({
'system.partyMembers': party.system.partyMembers.filter(x => x.uuid !== this.parent.uuid)
});
}
}
}
_onUpdate(changes, options, userId) {
super._onUpdate(changes, options, userId);
for (const party of this.parties) {