Merge branch 'master-177' into 'master'

Fix: #177 arme creature incorrecte

Closes #177

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!189
This commit is contained in:
Leratier Bretonnien 2021-04-03 16:52:42 +00:00
commit b2c7ff4927

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,