Fix Chateau Dormant pour les potions

This commit is contained in:
Vincent Vandemeulebrouck 2023-11-27 23:43:45 +01:00
parent 957e31b188
commit 50db9ba709

View File

@ -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`, {