diff --git a/module/actor.js b/module/actor.js index b7929202..8bce2611 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1572,7 +1572,7 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async ajouteNombreAstral( data ) { // Gestion expérience (si existante) - this.appliquerExperience( request.rolled, "vue", "astrologie"); + this.appliquerExperience( data.rolled, "vue", "astrologie"); // Ajout du nombre astral const item = {name: "Nombre Astral", type: "nombreastral", data: diff --git a/module/rdd-combat.js b/module/rdd-combat.js index 57a56a64..a22a350f 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -205,6 +205,7 @@ export class RdDCombat { return rollData; } + /* -------------------------------------------- */ _modifieRollDataCreature(rollData, competence) { competence = duplicate(competence); competence.data.defaut_carac = "carac_creature"; @@ -283,6 +284,7 @@ export class RdDCombat { RdDCombat._sendRollMessage(this.attacker, this.defender, this.defenderTokenId, "msg_defense", message, rollData); } + /* -------------------------------------------- */ _buildMessageDefense(rollData) { let message = "" + this.defender.name + " doit se défendre :"; @@ -303,6 +305,7 @@ export class RdDCombat { return message; } + /* -------------------------------------------- */ _buildMessageEncaisser(rollData) { return "
Encaisser à " + Misc.toSignedString(rollData.dmg.total) + " !"; } @@ -521,6 +524,7 @@ export class RdDCombat { dialog.render(true); } + /* -------------------------------------------- */ _prepareEsquive(attackerRoll, competence) { let rollData = { forceValue: this.defender.getForceValue(),