Suppression de queues TMR finies

This commit is contained in:
Vincent Vandemeulebrouck 2021-02-28 01:52:58 +01:00
parent bbd38bd618
commit 34e12cd701
3 changed files with 9 additions and 1 deletions

View File

@ -35,4 +35,8 @@ export class Conquete extends Draconique {
await this.createCaseTmr(actor, 'Conquête: ' + conquete.label, conquete, queue._id); await this.createCaseTmr(actor, 'Conquête: ' + conquete.label, conquete, queue._id);
} }
async onActorDeleteCaseTmr(actor, casetmr) {
await actor.deleteOwnedItem(casetmr.data.sourceid);
}
} }

View File

@ -142,5 +142,4 @@ export class Draconique {
onRemoveToken(tmr, casetmr); onRemoveToken(tmr, casetmr);
} }
} }
} }

View File

@ -30,4 +30,9 @@ export class Pelerinage extends Draconique {
decallage: tmrConstants.right decallage: tmrConstants.right
}); });
} }
async onActorDeleteCaseTmr(actor, casetmr) {
await actor.deleteOwnedItem(casetmr.data.sourceid);
}
} }