mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Fix for mean tagTeamDialog.finish
This commit is contained in:
parent
ef749f9b8c
commit
87ee027603
1 changed files with 7 additions and 1 deletions
|
|
@ -740,10 +740,16 @@ export default class TagTeamDialog extends HandlebarsApplicationMixin(Applicatio
|
|||
|
||||
const mainActor = this.party.system.partyMembers.find(x => x.uuid === mainRoll.options.source.actor);
|
||||
mainRoll.options.title = game.i18n.localize('DAGGERHEART.APPLICATIONS.TagTeamSelect.chatMessageRollTitle');
|
||||
|
||||
/* This could assumably be done better. For some reason rolls don't get correctly done through rollData.toJSON */
|
||||
const systemData = {
|
||||
...mainRoll.options,
|
||||
damage: joinedRoll.damageRollData
|
||||
damage: joinedRoll.damageRollData.toJSON()
|
||||
};
|
||||
for (const type of Object.keys(joinedRoll.damageRollData.types)) {
|
||||
systemData.damage.types[type].roll = joinedRoll.damageRollData.types[type].roll.toJSON();
|
||||
}
|
||||
|
||||
const cls = getDocumentClass('ChatMessage'),
|
||||
msgData = {
|
||||
type: 'dualityRoll',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue