From a0733dc049b66f47c466e28a68e9f41bc532768d Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Tue, 4 Feb 2025 21:24:47 +0100 Subject: [PATCH] Init, competences de base, fix creation de perso, etc --- modules/actors/tedeum-actor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/actors/tedeum-actor.js b/modules/actors/tedeum-actor.js index 69c6a00..f7b4630 100644 --- a/modules/actors/tedeum-actor.js +++ b/modules/actors/tedeum-actor.js @@ -571,7 +571,10 @@ export class TeDeumActor extends Actor { async rollDegatsArme(armeId) { let weapon = this.items.get(armeId) if (weapon) { - let bDegats = this.getBonusDegats() + let bDegats = 0 + if ( weapon.system.typeArme == "melee" ) { + bDegats = this.getBonusDegats() + } let formula = weapon.system.degats + "+" + bDegats.value let degatsRoll = await new Roll(formula).roll() await TeDeumUtility.showDiceSoNice(degatsRoll, game.settings.get("core", "rollMode") )