#181 Gestion potions (fabrication)

This commit is contained in:
sladecraven 2021-04-10 21:08:55 +02:00
parent 1b3c5f524d
commit daa2421ba4

View File

@ -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),