mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-24 16:33:38 +02:00
reinstate DhpActor in action (which causes circular reference)
This commit is contained in:
parent
d25212d9d7
commit
e9abdbc523
1 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import CostSelectionDialog from '../../applications/costSelectionDialog.mjs';
|
import CostSelectionDialog from '../../applications/costSelectionDialog.mjs';
|
||||||
import { DHActionDiceData, DHActionRollData, DHDamageData, DHDamageField } from './actionDice.mjs';
|
import { DHActionDiceData, DHActionRollData, DHDamageData, DHDamageField } from './actionDice.mjs';
|
||||||
//import DhpActor from '../../documents/actor.mjs';
|
import DhpActor from '../../documents/actor.mjs';
|
||||||
import D20RollDialog from '../../dialogs/d20RollDialog.mjs';
|
import D20RollDialog from '../../dialogs/d20RollDialog.mjs';
|
||||||
|
|
||||||
const fields = foundry.data.fields;
|
const fields = foundry.data.fields;
|
||||||
|
|
@ -129,13 +129,13 @@ export class DHBaseAction extends foundry.abstract.DataModel {
|
||||||
return this.parent.parent;
|
return this.parent.parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get actor() {
|
get actor() {
|
||||||
// return this.item instanceof DhpActor
|
return this.item instanceof DhpActor
|
||||||
// ? this.item
|
? this.item
|
||||||
// : this.item?.parent instanceof DhpActor
|
: this.item?.parent instanceof DhpActor
|
||||||
// ? this.item.parent
|
? this.item.parent
|
||||||
// : this.item?.actor;
|
: this.item?.actor;
|
||||||
// }
|
}
|
||||||
|
|
||||||
get chatTemplate() {
|
get chatTemplate() {
|
||||||
return 'systems/daggerheart/templates/chat/duality-roll.hbs';
|
return 'systems/daggerheart/templates/chat/duality-roll.hbs';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue