mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 06:56:12 +01:00
Improved registration and unregistration of triggers
This commit is contained in:
parent
9393bab6cf
commit
9fb9ae1b91
5 changed files with 129 additions and 27 deletions
|
|
@ -536,4 +536,10 @@ export default class DHToken extends CONFIG.Token.documentClass {
|
|||
};
|
||||
}
|
||||
//#endregion
|
||||
|
||||
async _preDelete() {
|
||||
if (this.actor && !this.actor.prototypeToken?.actorLink) {
|
||||
game.system.registeredTriggers.unregisterItemTriggers(this.actor.items);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue