Order messages accorder entité

Le message arrivait avant le message d'attaque réussie
This commit is contained in:
Vincent Vandemeulebrouck 2020-12-19 18:02:05 +01:00
parent add5f6c8a0
commit 1bcfba1f68

View File

@ -238,10 +238,6 @@ export class RdDCombat {
/* -------------------------------------------- */
async _onAttaqueNormale(rollData) {
console.log("RdDCombat.onAttaqueNormale >>>", rollData);
if (!await this.accorderEntite('avant-defense')) {
return;
}
let explications = "";
rollData.dmg = RdDBonus.dmg(rollData, this.attacker.getBonusDegat(), this.defender.isEntiteCauchemar());
@ -267,6 +263,10 @@ export class RdDCombat {
}
ChatUtility.chatWithRollMode(chatOptions, this.attacker.name)
if (!await this.accorderEntite('avant-defense')) {
return;
}
if (this.target) {
this._sendMessageDefense(rollData);
}