Fixed so that reload button is only shown in chat messages if the underlying item uses reload

This commit is contained in:
WBHarry 2026-07-21 22:40:41 +02:00
parent 26bcc2dddc
commit cb0d22a9a0
3 changed files with 15 additions and 12 deletions

View file

@ -1,5 +1,5 @@
<div class="roll-buttons">
{{#if (eq automationSettings.reload 'button')}}
{{#if (and parent.system.hasReload (eq automationSettings.reload 'button'))}}
<button class="roll-reload-check" {{#if needsReload}}disabled{{/if}}>{{localize "DAGGERHEART.ACTIONS.Reload.checkReload"}}</button>
{{/if}}
{{#if areas.length}}<button class="action-areas end-button"><i class="fa-solid fa-crosshairs"></i></button>{{/if}}