From 87b594953b633361643133e18d57815f93c6d456 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 16 Nov 2020 23:32:22 +0100 Subject: [PATCH] Fix initiative pour les creatures/entites --- module/actor.js | 2 +- system.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 8857c123..30dcded2 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1041,7 +1041,7 @@ export class RdDActor extends Actor { if ( this.data.type != 'entite') // Pas de PV chez les entités this.santeIncDec("vie", result.vie); this.santeIncDec("endurance", result.endurance); - result.locName = attackerRoll.loc.label; + result.locName = (attackerRoll.loc) ? attackerRoll.loc.label : "Corps"; this.manageBlessures(result); // Will upate the result table const blessureLegere = (result.legeres > 0 ? "une blessure légère" : ""); diff --git a/system.json b/system.json index aae51c51..4df1afbc 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "0.9.50", + "version": "0.9.51", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.6", "templateVersion": 46,