Refine logic for use action when hovering over item icon

This commit is contained in:
Carlos Fernandez 2026-04-19 20:18:46 -04:00
parent 6533b3edee
commit 0471bbc7d0
5 changed files with 20 additions and 3 deletions

View file

@ -148,6 +148,12 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
: null;
}
/** Returns true if the action is usable */
get usable() {
const actor = this.actor;
return this.isOwner && actor?.type === 'character';
}
static getRollType(parent) {
return 'trait';
}