Fix regression with actions list

This commit is contained in:
Carlos Fernandez 2026-04-21 15:18:59 -04:00
parent 5bde5a8fe5
commit 61a453a504
4 changed files with 7 additions and 5 deletions

View file

@ -109,7 +109,9 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
get actionsList() {
// No actions on non-characters
if (this.actor && this.actor.type !== 'character') return [];
if (this.metadata.isInventoryItem && this.actor && this.actor.type !== 'character') {
return [];
}
return this.actions;
}