diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 4ef19b4b..0ad436ec 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -281,7 +281,7 @@ 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.needsReload': needReload }); + const needsReload = await message.system.action.handleReload?.({ awaitRoll: true }); + await message.update({ 'system.needsReload': needsReload }); } } diff --git a/module/dice/dhRoll.mjs b/module/dice/dhRoll.mjs index 43ace90c..62d9ff9f 100644 --- a/module/dice/dhRoll.mjs +++ b/module/dice/dhRoll.mjs @@ -139,7 +139,7 @@ export default class DHRoll extends BaseRoll { item?.system.hasReload && action?.type === 'attack' && reloadSetting === CONFIG.DH.SETTINGS.reloadChoices.auto.id; - const needReload = useReload ? await action?.handleReload?.() : false; + const needsReload = useReload ? await action?.handleReload?.() : false; const cls = getDocumentClass('ChatMessage'), msgData = { @@ -148,7 +148,7 @@ export default class DHRoll extends BaseRoll { title: roll.title, speaker: cls.getSpeaker({ actor: roll.data?.parent }), sound: config.mute ? null : CONFIG.sounds.dice, - system: { ...config, actionDescription, needReload }, + system: { ...config, actionDescription, needsReload }, rolls: [roll] }; diff --git a/templates/ui/chat/parts/button-part.hbs b/templates/ui/chat/parts/button-part.hbs index b55dcecb..b631192c 100644 --- a/templates/ui/chat/parts/button-part.hbs +++ b/templates/ui/chat/parts/button-part.hbs @@ -1,6 +1,6 @@
{{#if (eq automationSettings.reload 'button')}} - + {{/if}} {{#if areas.length}}{{/if}} {{#if hasDamage}}