Draft: Gestion des signes draconiques #452

Closed
vincent.vandeme wants to merge 9 commits from v1.4-signes-draconiques into v1.4
Showing only changes of commit 6dd67b54eb - Show all commits

View File

@ -2573,7 +2573,7 @@ export class RdDActor extends Actor {
label: "Jet de méditation",
callbacks: [
this.createCallbackExperience(),
{ condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) },
{ condition: r => r.rolled.isEPart, action: r => this._meditationEPart(r) },
{ action: r => this._meditationResult(r) }
]
});
@ -2594,7 +2594,7 @@ export class RdDActor extends Actor {
}
/* -------------------------------------------- */
_meditationETotal(meditationData) {
_meditationEPart(meditationData) {
meditationData.meditation.data.malus--;
this.updateEmbeddedDocuments('Item', [meditationData.meditation]);
}