Fi recul + version
This commit is contained in:
		| @@ -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 }); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user