Fix weapon base attack reseting on update

This commit is contained in:
Dapoolp 2025-08-17 15:25:23 +02:00
parent 91b0b5cff6
commit 04786a4895

View file

@ -28,6 +28,14 @@ export default class DHItem extends foundry.documents.Item {
return doc;
}
/* -------------------------------------------- */
/** @inheritDoc */
static migrateData(source) {
if(source.system?.attack && !source.system.attack.type) source.system.attack.type = "attack";
return super.migrateData(source);
}
/**
* @inheritdoc
* @param {object} options - Options which modify the getRollData method.