From 34e12cd7015196c553dd615aad415432b6416ab5 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 28 Feb 2021 01:52:58 +0100 Subject: [PATCH] Suppression de queues TMR finies --- module/tmr/conquete.js | 4 ++++ module/tmr/draconique.js | 1 - module/tmr/pelerinage.js | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/module/tmr/conquete.js b/module/tmr/conquete.js index 550c6427..ba7dffeb 100644 --- a/module/tmr/conquete.js +++ b/module/tmr/conquete.js @@ -35,4 +35,8 @@ export class Conquete extends Draconique { await this.createCaseTmr(actor, 'ConquĂȘte: ' + conquete.label, conquete, queue._id); } + async onActorDeleteCaseTmr(actor, casetmr) { + await actor.deleteOwnedItem(casetmr.data.sourceid); + } + } diff --git a/module/tmr/draconique.js b/module/tmr/draconique.js index bbbac5fe..f6b88794 100644 --- a/module/tmr/draconique.js +++ b/module/tmr/draconique.js @@ -142,5 +142,4 @@ export class Draconique { onRemoveToken(tmr, casetmr); } } - } \ No newline at end of file diff --git a/module/tmr/pelerinage.js b/module/tmr/pelerinage.js index d9ba19c5..ec9e4010 100644 --- a/module/tmr/pelerinage.js +++ b/module/tmr/pelerinage.js @@ -30,4 +30,9 @@ export class Pelerinage extends Draconique { decallage: tmrConstants.right }); } + + async onActorDeleteCaseTmr(actor, casetmr) { + await actor.deleteOwnedItem(casetmr.data.sourceid); + } + }