Compare commits

...

2 commits

Author SHA1 Message Date
WBHarry
f1599bf566 Improved migration 2026-07-16 15:03:40 +02:00
WBHarry
737a0b03ad . 2026-07-16 11:49:24 +02:00
2 changed files with 3 additions and 4 deletions

View file

@ -25,9 +25,8 @@ export class ChatDamageData extends foundry.abstract.DataModel {
for (const key of Object.keys(this.types)) { for (const key of Object.keys(this.types)) {
const type = this.types[key]; const type = this.types[key];
try { try {
const roll = Roll.fromData(type.roll); type.roll = Roll.fromData(type.roll);
type.roll = roll; type.roll.modifierTotal = CONFIG.Dice.daggerheart.DHRoll.calculateTotalModifiers(type.roll);
type.roll.modifierTotal = CONFIG.Dice.daggerheart.DHRoll.calculateTotalModifiers(roll);
} catch {} } catch {}
} }
} }

View file

@ -5,7 +5,7 @@ export class Migration_2_6_0 extends MigrationHandlerBase {
/** @inheritdoc */ /** @inheritdoc */
async updateActorSource(actor) { async updateActorSource(actor) {
if (actor.type === 'party') { if (actor.type === 'party' && Object.keys(actor.system.tagTeam.members).length) {
return { return {
_id: actor._id, _id: actor._id,
system: { system: {