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);