Fixed roll sound coming when canceling a roll. Fixed the leader PART not being disabled when the player isn't the leader

This commit is contained in:
WBHarry 2026-04-11 11:12:42 +02:00
parent dddc8413cb
commit 0d037b40d9
3 changed files with 7 additions and 1 deletions

View file

@ -355,6 +355,7 @@ export default class GroupRollDialog extends HandlebarsApplicationMixin(Applicat
}
});
if (!result) return;
if (!game.modules.get('dice-so-nice')?.active) foundry.audio.AudioHelper.play({ src: CONFIG.sounds.dice });
const rollData = result.messageRoll.toJSON();

View file

@ -1,5 +1,10 @@
.daggerheart.dialog.dh-style.views.group-roll-dialog {
.main-character-outer-container {
&.inactive {
opacity: 0.3;
pointer-events: none;
}
.main-character-container {
.character-info {
display: flex;

View file

@ -1,6 +1,6 @@
<section class="tab {{#if tabs.groupRoll.active}} active{{/if}}" data-group="{{tabs.groupRoll.group}}" data-tab="{{tabs.groupRoll.id}}">
{{#with leader}}
<div class="main-character-outer-container">
<div class="main-character-outer-container {{#unless isEditable}}inactive{{/unless}}">
<div class="section-title">{{localize "DAGGERHEART.APPLICATIONS.GroupRollSelect.leader"}}</div>
<fieldset>
<div class="main-character-container">