Reworked beastform to hold it's data entirely in the beastformEffect

This commit is contained in:
WBHarry 2025-07-03 16:18:54 +02:00
parent 3186468f28
commit 51bd7c18af
7 changed files with 76 additions and 60 deletions

View file

@ -97,16 +97,16 @@ export default class DHItem extends foundry.documents.Item {
async use(event) {
const actions = this.system.actions;
let response;
if (actions?.length) {
let action = actions[0];
if (actions.length > 1 && !event?.shiftKey) {
// Actions Choice Dialog
action = await this.selectActionDialog();
}
if (action) response = action.use(event);
if (action) return action.use(event);
}
return response;
return this.toChat();
}
async toChat(origin) {