mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-20 00:27:02 +01:00
Action Refactor Part #2
This commit is contained in:
parent
479e147640
commit
9da6a13009
20 changed files with 324 additions and 340 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue