Auto add Attack action to newly created weapon

This commit is contained in:
Dapoolp 2025-06-25 10:26:43 +02:00
parent 22075e7490
commit 1bd2bbd02d
3 changed files with 21 additions and 7 deletions

View file

@ -66,7 +66,7 @@ export default class DHActionConfig extends DaggerheartSheet(ApplicationV2) {
context.hasBaseDamage = !!this.action.parent.damage;
context.getRealIndex = this.getRealIndex.bind(this);
context.disableOption = this.disableOption.bind(this);
context.isNPC = this.action.actor.type !== 'character';
context.isNPC = this.action.actor && this.action.actor.type !== 'character';
return context;
}