From 50db9ba709ec0b48ceb4bbf4df4bbaf7b84ea527 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Mon, 27 Nov 2023 23:43:45 +0100 Subject: [PATCH] Fix Chateau Dormant pour les potions --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`, {