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

@ -84,7 +84,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
];
default:
const item = actionActor.items.get(this.source.item);
return item ? item.system.actions?.find(a => a.id === this.source.action) : null;
return item ? item.system.actionsList?.find(a => a.id === this.source.action) : null;
}
}

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;
}