Fix: experiencelog manquant sur signe draconique #496

Merged
vincent.vandeme merged 1 commits from v1.4-xplog into v1.4 2021-06-21 08:02:05 +02:00
Showing only changes of commit 61165107f0 - Show all commits

View File

@ -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');