Action Refactor Part #2

This commit is contained in:
Dapoolp 2025-07-24 22:56:23 +02:00
parent 479e147640
commit 9da6a13009
20 changed files with 324 additions and 340 deletions

View file

@ -1,8 +1,8 @@
import { DHDamageData } from './actionDice.mjs';
import { DHDamageData } from '../fields/action/damageField.mjs';
import DHDamageAction from './damageAction.mjs';
export default class DHAttackAction extends DHDamageAction {
static extraSchemas = [...super.extraSchemas, ...['roll', 'save']];
static extraSchemas = [...super.extraSchemas, 'roll', 'save'];
static getRollType(parent) {
return parent.parent.type === 'weapon' ? 'attack' : 'spellcast';