From 680fbee090b30bff824c9a46009c454b57939e5b Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 3 Apr 2021 13:03:58 +0200 Subject: [PATCH] Fix: #177 arme creature incorrecte --- module/item-competencecreature.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/item-competencecreature.js b/module/item-competencecreature.js index e6140035..aa35e787 100644 --- a/module/item-competencecreature.js +++ b/module/item-competencecreature.js @@ -19,11 +19,10 @@ export class RdDItemCompetenceCreature extends Item { /* -------------------------------------------- */ static toArme(itemData) { if (RdDItemCompetenceCreature.isCompetenceAttaque(itemData)) { - itemData = Misc.data(itemData); - let arme = { name: itemData.name, data: duplicate(itemData) }; + let arme = duplicate(Misc.data(itemData)); mergeObject(arme.data, { - competence: itemData.name, + competence: arme.name, resistance: 100, equipe: true, penetration: 0,