This commit is contained in:
sladecraven 2020-12-26 18:29:03 +01:00
parent 6b0ace3619
commit 01b98f2f3b
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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 = "<strong>" + this.defender.name + "</strong> doit se défendre :<span class='chat-card-button-area'>";
@ -303,6 +305,7 @@ export class RdDCombat {
return message;
}
/* -------------------------------------------- */
_buildMessageEncaisser(rollData) {
return "<br><a class='chat-card-button' id='encaisser-button' data-attackerId='" + this.attackerId + "' data-defenderTokenId='" + this.defenderTokenId + "'>Encaisser à " + Misc.toSignedString(rollData.dmg.total) + " !</a>";
}
@ -521,6 +524,7 @@ export class RdDCombat {
dialog.render(true);
}
/* -------------------------------------------- */
_prepareEsquive(attackerRoll, competence) {
let rollData = {
forceValue: this.defender.getForceValue(),