mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-23 07:53:39 +02:00
Improved
This commit is contained in:
parent
28efef7951
commit
9cdfd7a27a
11 changed files with 151 additions and 69 deletions
|
|
@ -86,6 +86,18 @@ export default class DHClass extends BaseDataItem {
|
|||
}
|
||||
}
|
||||
|
||||
async _preDelete() {
|
||||
for (var subclass of this.subclasses) {
|
||||
await subclass.update({
|
||||
system: {
|
||||
originItemType: null,
|
||||
originId: null,
|
||||
subType: null
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
_onDelete(options, userId) {
|
||||
super._onDelete(options, userId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue