mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46: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
|
|
@ -104,6 +104,10 @@ export default class DhpActor extends Actor {
|
|||
}
|
||||
}
|
||||
|
||||
async _preDelete() {
|
||||
game.system.registeredTriggers.unregisterItemTriggers(this.items);
|
||||
}
|
||||
|
||||
_onDelete(options, userId) {
|
||||
super._onDelete(options, userId);
|
||||
for (const party of this.parties) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue