Finished logic

This commit is contained in:
WBHarry 2026-07-03 17:06:55 +02:00
parent f004227232
commit e63d19a2c4
5 changed files with 15 additions and 7 deletions

View file

@ -51,6 +51,10 @@ export default class DHAttackAction extends DHDamageAction {
}
async use(event, options) {
if (this.item?.system.needsReload) {
return ui.notifications.error(game.i18n.format('DAGGERHEART.UI.Notifications.reloadRequired', { weapon: this.item.name }));
}
const result = await super.use(event, options);
if (result?.message?.system.action?.roll?.type === 'attack') {