This commit is contained in:
Dapoolp 2025-07-24 23:48:05 +02:00
parent 9da6a13009
commit 192c739a58
13 changed files with 35 additions and 29 deletions

View file

@ -123,9 +123,9 @@ export default class DHItem extends foundry.documents.Item {
}
async use(event) {
const actions = this.system.actionsList;
const actions = new Set(this.system.actionsList);
if (actions?.size) {
let action = actions.first(0);
let action = actions.first();
if (actions.size > 1 && !event?.shiftKey) {
// Actions Choice Dialog
action = await this.selectActionDialog(event);