diff --git a/module/actor.js b/module/actor.js index 548af358..ffeaf1ee 100644 --- a/module/actor.js +++ b/module/actor.js @@ -153,7 +153,7 @@ export class RdDActor extends RdDBaseActorSang { let potions = this.itemTypes[TYPES.potion] .filter(it => it.system.categorie.toLowerCase().includes('enchant') && !potion.system.prpermanent) - const potionUpdates = Promise.all(potions.map(async potion => { + const potionUpdates = await Promise.all(potions.map(async potion => { console.log(potion) let nouveauReve = (potion.system.pr > 0) ? potion.system.pr - 1 : 0; const message = await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-potionenchantee-chateaudormant.html`, {