Fixed so that Rally dice works as a single active effect for bard (#1708)

This commit is contained in:
WBHarry 2026-03-07 00:08:03 +01:00 committed by GitHub
parent 92d8c2ca18
commit 83c3da0130
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 107 deletions

View file

@ -1,4 +1,5 @@
import DamageDialog from '../applications/dialogs/damageDialog.mjs';
import { parseRallyDice } from '../helpers/utils.mjs';
import { RefreshType, socketEvent } from '../systemRegistration/socket.mjs';
import DHRoll from './dhRoll.mjs';
@ -197,7 +198,7 @@ export default class DamageRoll extends DHRoll {
// Bardic Rally
const rallyChoices = config.data?.parent?.appliedEffects.reduce((a, c) => {
const change = c.changes.find(ch => ch.key === 'system.bonuses.rally');
if (change) a.push({ value: c.id, label: change.value });
if (change) a.push({ value: c.id, label: parseRallyDice(change.value, c) });
return a;
}, []);
if (rallyChoices.length) {