From ed7471875f901fbd41417ce04027a6bcd0b22336 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 22 Nov 2023 22:16:48 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20armes=20des=20cr=C3=A9atures=20utilisabl?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/item-arme.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/item-arme.js b/module/item-arme.js index 00edc4a3..67fb3dd1 100644 --- a/module/item-arme.js +++ b/module/item-arme.js @@ -166,7 +166,11 @@ export class RdDItemArme extends Item { } static isArmeUtilisable(arme) { - return arme.type == TYPES.arme && arme.system.equipe && (arme.system.resistance > 0 || arme.system.portee_courte > 0); + switch (arme.type) { + case TYPES.arme: return arme.system.equipe && (arme.system.resistance > 0 || arme.system.portee_courte > 0) + case TYPES.competencecreature: return true + } + return false } static ajoutCorpsACorps(armes, actor) {