From c2815516035551a925e319db3e0f6bb87df5556d Mon Sep 17 00:00:00 2001 From: sladecraven Date: Fri, 12 Mar 2021 23:19:34 +0100 Subject: [PATCH] Fix combat mains nues --- module/rdd-combat.js | 6 ++++-- system.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/rdd-combat.js b/module/rdd-combat.js index dafda8ed..0412decd 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -674,8 +674,10 @@ export class RdDCombat { let rollData = this._prepareAttaque(competence, arme); console.log("RdDCombat.attaque >>>", rollData); - this.attacker.incItemUse(arme._id); // Usage - this.attacker.verifierForceMin(arme); + if (arme) { + this.attacker.incItemUse(arme._id); // Usage + this.attacker.verifierForceMin(arme); + } const dialog = await RdDRoll.create(this.attacker, rollData, { diff --git a/system.json b/system.json index 4a1516fd..c74a5482 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": "1.3.30", + "version": "1.3.31", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9",