From f807d3cd52d9c5b277e484ff539a8ef95c8a964a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 1 Jun 2021 00:01:41 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20flag=20Thanatos=20m=C3=AAme=20en=20cas?= =?UTF-8?q?=20d'=C3=A9chec=20de=20sort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/actor.js b/module/actor.js index de93a0ae..b5528565 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2274,6 +2274,9 @@ export class RdDActor extends Actor { rollData.show = {} rollData.depenseReve = Number(selectedSort.data.ptreve_reel); + if (rollData.competence.name.includes('Thanatos')) { // Si Thanatos + await this.update({ "data.reve.reve.thanatosused": true }); + } let reveActuel = Misc.templateData(this).reve.reve.value; if (rolled.isSuccess) { // Réussite du sort ! if (rolled.isPart) { @@ -2282,9 +2285,6 @@ export class RdDActor extends Actor { if (rollData.isSortReserve) { rollData.depenseReve++; } - if (rollData.competence.name.includes('Thanatos')) { // Si Thanatos - await this.update({ "data.reve.reve.thanatosused": true }); - } if (reveActuel > rollData.depenseReve) { // Incrémenter/gére le bonus de case RdDItemSort.incrementBonusCase(this, selectedSort, rollData.tmr.coord);