mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Compare commits
2 commits
87ee027603
...
f1599bf566
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1599bf566 | ||
|
|
737a0b03ad |
2 changed files with 3 additions and 4 deletions
|
|
@ -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 {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue