Order messages accorder entité
Le message arrivait avant le message d'attaque réussie
This commit is contained in:
parent
add5f6c8a0
commit
1bcfba1f68
@ -238,10 +238,6 @@ export class RdDCombat {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _onAttaqueNormale(rollData) {
|
async _onAttaqueNormale(rollData) {
|
||||||
console.log("RdDCombat.onAttaqueNormale >>>", rollData);
|
console.log("RdDCombat.onAttaqueNormale >>>", rollData);
|
||||||
if (!await this.accorderEntite('avant-defense')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let explications = "";
|
let explications = "";
|
||||||
|
|
||||||
rollData.dmg = RdDBonus.dmg(rollData, this.attacker.getBonusDegat(), this.defender.isEntiteCauchemar());
|
rollData.dmg = RdDBonus.dmg(rollData, this.attacker.getBonusDegat(), this.defender.isEntiteCauchemar());
|
||||||
@ -262,11 +258,15 @@ export class RdDCombat {
|
|||||||
// Final chat message
|
// Final chat message
|
||||||
let chatOptions = {
|
let chatOptions = {
|
||||||
content: "<strong>Test : " + rollData.selectedCarac.label + " / " + rollData.competence.name + "</strong>"
|
content: "<strong>Test : " + rollData.selectedCarac.label + " / " + rollData.competence.name + "</strong>"
|
||||||
+ RdDResolutionTable.explainRollData(rollData)
|
+ RdDResolutionTable.explainRollData(rollData)
|
||||||
+ explications
|
+ explications
|
||||||
}
|
}
|
||||||
ChatUtility.chatWithRollMode(chatOptions, this.attacker.name)
|
ChatUtility.chatWithRollMode(chatOptions, this.attacker.name)
|
||||||
|
|
||||||
|
if (!await this.accorderEntite('avant-defense')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.target) {
|
if (this.target) {
|
||||||
this._sendMessageDefense(rollData);
|
this._sendMessageDefense(rollData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user