This commit is contained in:
WBHarry 2026-07-19 16:33:07 +02:00
parent 8d68166e4c
commit 863b5116f7
5 changed files with 26 additions and 19 deletions

View file

@ -28,7 +28,7 @@ export class ChatDamageData extends foundry.abstract.DataModel {
}
_prepareRolls() {
this.main &&= Roll.fromData(this.main);
this.main &&= Roll.fromData({ ...this.main, class: 'DamageRoll' }); // Temp overriding to DamageRoll. Should be properly saved on creation instead
for (const key of Object.keys(this.resources)) {
this.resources[key] = Roll.fromData(this.resources[key]);
}