mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Fix Attribute rolling. Updated some depreciated values based on warnings.
This commit is contained in:
parent
aa4021d1a2
commit
cb34048ac6
5 changed files with 15 additions and 14 deletions
|
|
@ -320,11 +320,11 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
this.render();
|
||||
}
|
||||
|
||||
static async rollAttribute(_, event){
|
||||
const { roll, hope, fear, advantage, disadvantage, modifiers } = await this.document.dualityRoll({ title: 'Attribute Bonus', value: event.currentTarget.dataset.value }, event.shiftKey);
|
||||
static async rollAttribute(event, target) {
|
||||
const { roll, hope, fear, advantage, disadvantage, modifiers } = await this.document.dualityRoll({ title: 'Attribute Bonus', value: event.target.dataset.value }, event.shiftKey);
|
||||
|
||||
const cls = getDocumentClass("ChatMessage");
|
||||
const msg = new cls({
|
||||
const msgData = {
|
||||
type: 'dualityRoll',
|
||||
system: {
|
||||
roll: roll._formula,
|
||||
|
|
@ -337,9 +337,9 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
user: game.user.id,
|
||||
content: "systems/daggerheart/templates/chat/duality-roll.hbs",
|
||||
rolls: [roll]
|
||||
});
|
||||
};
|
||||
|
||||
await cls.create(msg.toObject());
|
||||
await cls.create(msgData);
|
||||
}
|
||||
|
||||
static async toggleMarks(_, button){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue