11.2.6 - Les réveils difficiles d'Akarlikarlikar #686
@ -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`, {
|
||||
|
Loading…
Reference in New Issue
Block a user