Fi recul + version

This commit is contained in:
sladecraven 2021-01-23 18:44:04 +01:00
parent bcc5f77589
commit 7fc6ccb106
2 changed files with 12 additions and 4 deletions

View File

@ -794,9 +794,17 @@ export class RdDCombat {
if (this._isAttaqueCauseRecul(attackerRoll)) { if (this._isAttaqueCauseRecul(attackerRoll)) {
let impactRecul = this._computeImpactRecul(attackerRoll); let impactRecul = this._computeImpactRecul(attackerRoll);
const agilite = this.defender.isEntiteCauchemar() const agilite = 10;
? this.defender.data.data.carac.reve.value if ( this.defender.data.data.carac.agilite ) {
: this.defender.data.data.carac.agilite.value; agilite = this.defender.data.data.carac.agilite.value;
} else if ( this.defender.data.data.carac.force) {
agilite = this.defender.data.data.carac.force.value;
} else if ( this.defender.isEntiteCauchemar()) {
agilite = this.defender.data.data.carac.reve.value;
} else
ui.notifications.warn("Recul impossible pour cette créature/entité");
return;
}
let rollRecul = await RdDResolutionTable.rollData({ caracValue: 10, finalLevel: impactRecul, showDice: false }); let rollRecul = await RdDResolutionTable.rollData({ caracValue: 10, finalLevel: impactRecul, showDice: false });

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.2.36", "version": "1.3.0",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8", "compatibleCoreVersion": "0.7.8",