From 944120b52447ede919d1a6eebdad7a056c84ce06 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 16 Dec 2022 20:45:01 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20commande=20/rdd=20sans=20comp=C3=A9tence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On peut maintenant faire /rdd Vue -2 --- module/rdd-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-commands.js b/module/rdd-commands.js index 7b3deebe..c24e8af0 100644 --- a/module/rdd-commands.js +++ b/module/rdd-commands.js @@ -331,7 +331,7 @@ export class RdDCommands { diff = 0; } const caracName = params[0]; - let competence = length > 1 ? actors[0].getCompetence(Misc.join(params.slice(1, length), ' ')) : undefined; + let competence = length > 1 ? actors[0].getCompetence(Misc.join(params.slice(1, length), ' ')) : {name:undefined}; if (competence) { for (let actor of actors) { await actor.rollCaracCompetence(caracName, competence.name, diff);