From 61165107f0cd7eb72435e49c0c6d02ee84ffa841 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 20 Jun 2021 22:01:36 +0200 Subject: [PATCH] Fix: experiencelog manquant sur signe draconique --- module/actor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/module/actor.js b/module/actor.js index d30d2b72..5c921663 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2782,6 +2782,7 @@ export class RdDActor extends Actor { rollData.xpSort = RdDItemSigneDraconique.getXpSortSigneDraconique(rollData.rolled.code, rollData.signe); if (rollData.xpSort > 0) { await this.updateEmbeddedDocuments("Item", [{ _id: compData._id, 'data.xp_sort': Misc.toInt(compData.data.xp_sort) + rollData.xpSort }]); + await this.updateExperienceLog("XP Sort", rollData.xpSort, "Signe draconique en " + rollData.competence.name); } await this.deleteEmbeddedDocuments("Item", [rollData.signe._id]); RdDResolutionTable.displayRollData(rollData, this.name, 'chat-resultat-lecture-signedraconique.html');