mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
19 lines
496 B
JavaScript
19 lines
496 B
JavaScript
import DHBaseAction from './baseAction.mjs';
|
|
|
|
export default class DHSummonAction extends DHBaseAction {
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
...super.defineSchema(),
|
|
documentUUID: new fields.DocumentUUIDField({ type: 'Actor' })
|
|
};
|
|
}
|
|
|
|
async trigger(event, ...args) {
|
|
if (!this.canSummon || !canvas.scene) return;
|
|
}
|
|
|
|
get canSummon() {
|
|
return game.user.can('TOKEN_CREATE');
|
|
}
|
|
}
|