mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-19 00:19:03 +01:00
Fixes
This commit is contained in:
parent
9da6a13009
commit
192c739a58
13 changed files with 35 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue