Merged with main

This commit is contained in:
WBHarry 2025-07-15 15:58:07 +02:00
commit 64cc7a8e9e
46 changed files with 841 additions and 238 deletions

View file

@ -5,7 +5,7 @@ export default class DHAttackAction extends DHDamageAction {
static extraSchemas = [...super.extraSchemas, ...['roll', 'save']];
static getRollType(parent) {
return parent.type === 'weapon' ? 'weapon' : 'spellcast';
return parent.type === 'weapon' ? 'attack' : 'spellcast';
}
get chatTemplate() {
@ -21,7 +21,7 @@ export default class DHAttackAction extends DHDamageAction {
}
if (this.roll.useDefault) {
this.roll.trait = this.item.system.attack.roll.trait;
this.roll.type = 'weapon';
this.roll.type = 'attack';
}
}
}
@ -46,4 +46,8 @@ export default class DHAttackAction extends DHDamageAction {
return result;
}
// get modifiers() {
// return [];
// }
}