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

@ -99,7 +99,9 @@ export default class DHWeapon extends AttachableItem {
/* -------------------------------------------- */
get actionsList() {
return [this.attack, ...this.actions];
// No actions on non-characters
if (this.actor && this.actor.type !== 'character') return [];
return [this.attack, ...super.actionsList];
}
get customActions() {