From 8089e0c83e1bb81ca926883793b921fb5e9e67be Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 4 Apr 2021 00:38:10 +0200 Subject: [PATCH] Fix armes 1/2 mains dans la liste d'armes --- module/rdd-combat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-combat.js b/module/rdd-combat.js index de88143c..a8ae51e3 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -160,7 +160,7 @@ export class RdDCombatManager extends Combat { arme2main.data.mainInfo = "(2m)"; arme2main.data.dommages = arme2main.data.dommages.split("/")[1]; // Existence temporaire uniquement dans la liste des armes, donc OK arme2main.data.competence = arme2main.data.competence.replace(" 1 main", " 2 mains"); // Replace ! - let comp = competences.find(c => c.name == arme2main.data.competence); + let comp = Misc.data(competences.find(c => c.name == arme2main.data.competence)); arme2main.data.niveau = comp.data.niveau; arme2main.data.initiative = RdDCombatManager.calculInitiative(arme2main.data.niveau, carac[comp.data.defaut_carac].value); armesEquipe.push(arme2main);