From 8eb1387be42aeebe2e5a776cf4caf165ec6d91c5 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 24 Apr 2025 00:58:42 +0200 Subject: [PATCH] =?UTF-8?q?attaques=20=C3=A0=20distance=20sans=20difficult?= =?UTF-8?q?=C3=A9=20libre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + templates/dialog-roll-competence.hbs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 9c3d3069..17b9f84a 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ - Corrections - les défenses particulières sont correctement affichées - les vieux boucliers (sans catégorie de parade car créés il y a longtemps) peuvent parer... + - Les attaques à distance n'ont pas de difficulté libre ## 12.0.48 - La chèvre d'Astrobazzarh - le Bandersnatch a une protection de 10 diff --git a/templates/dialog-roll-competence.hbs b/templates/dialog-roll-competence.hbs index bf12943c..ddcccd38 100644 --- a/templates/dialog-roll-competence.hbs +++ b/templates/dialog-roll-competence.hbs @@ -70,7 +70,10 @@
- {{#if attackerRoll}} + {{#if (or attackerRoll + (and sourceToken (eq competence.system.categorie 'tir')) + (and sourceToken (eq competence.system.categorie 'lancer')) + )}} {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffFixe.hbs"}} {{else}} {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.hbs"}}