Fix: #177 arme creature incorrecte

This commit is contained in:
Vincent Vandemeulebrouck 2021-04-03 13:03:58 +02:00
parent 5c6a01b9f4
commit 680fbee090

View File

@ -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,