diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 35a4a966..02846400 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -282,8 +282,6 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo async onRollReloadCheck(_event, messageData) { const message = game.messages.get(messageData._id); const needReload = await message.system.action.handleReload?.({ awaitRoll: true }); - await message.update({ - 'system.needReload': needReload - }); + await message.update({ 'system.needReload': needReload }); } } diff --git a/module/data/action/attackAction.mjs b/module/data/action/attackAction.mjs index 934cbbae..1922140c 100644 --- a/module/data/action/attackAction.mjs +++ b/module/data/action/attackAction.mjs @@ -53,7 +53,7 @@ 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 })); + return ui.notifications.error(_loc('DAGGERHEART.UI.Notifications.reloadRequired', { weapon: this.item.name })); } const result = await super.use(event, options);