mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-19 00:19:03 +01:00
Merge branch 'main' into feature/chat-message-styles
This commit is contained in:
commit
b2fbb6ff50
2 changed files with 14 additions and 3 deletions
|
|
@ -72,9 +72,13 @@ export class DHActionRollData extends foundry.abstract.DataModel {
|
|||
if (!this.parent?.actor) return modifiers;
|
||||
switch (this.parent.actor.type) {
|
||||
case 'character':
|
||||
const spellcastingTrait =
|
||||
this.type === 'spellcast'
|
||||
? (this.parent.actor?.system?.spellcastModifierTrait?.key ?? 'agility')
|
||||
: null;
|
||||
const trait =
|
||||
this.useDefault || !this.trait
|
||||
? (this.parent.item.system.attack.roll.trait ?? 'agility')
|
||||
? (spellcastingTrait ?? this.parent.item.system.attack.roll.trait ?? 'agility')
|
||||
: this.trait;
|
||||
if (
|
||||
this.type === CONFIG.DH.GENERAL.rollTypes.attack.id ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue