From daa2421ba4a7899190dcdf7cded95c6b98cb70f8 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 10 Apr 2021 21:08:55 +0200 Subject: [PATCH] #181 Gestion potions (fabrication) --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index fcdf4751..9de3911d 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3341,7 +3341,7 @@ export class RdDActor extends Actor { await this.deleteEmbeddedDocuments('Item', [ potionData._id ] ); } else { let update = { _id: potionData._id, 'data.quantite': newQuantite}; - const updated = await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity + await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity } ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),