mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-19 00:19:03 +01:00
parent
f87dfe477a
commit
c7f3ec8ab3
10 changed files with 156 additions and 388 deletions
|
|
@ -64,9 +64,9 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
return actionItem.system.actionsList?.find(a => a.id === this.source.action);
|
||||
}
|
||||
|
||||
get messageTemplate() {
|
||||
return 'systems/daggerheart/templates/ui/chat/roll.hbs';
|
||||
}
|
||||
// get messageTemplate() {
|
||||
// return 'systems/daggerheart/templates/ui/chat/roll.hbs';
|
||||
// }
|
||||
|
||||
get targetMode() {
|
||||
return this.targetSelection;
|
||||
|
|
@ -100,7 +100,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
this.oldTargets.push(ct);
|
||||
});
|
||||
if(this.hasSave) this.setPendingSaves();
|
||||
if(this.currentTargets.length) {
|
||||
// if(this.currentTargets.length) {
|
||||
if(!this.parent._id) return;
|
||||
const updates = await this.parent.update(
|
||||
{
|
||||
|
|
@ -111,7 +111,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
);
|
||||
if(!updates && ui.chat.collection.get(this.parent.id))
|
||||
ui.chat.updateMessage(this.parent);
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -275,6 +275,7 @@ export function ActionMixin(Base) {
|
|||
}
|
||||
};
|
||||
|
||||
ChatMessage.applyRollMode(msg, game.settings.get('core', 'rollMode'));
|
||||
cls.create(msg);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue