Fixed so that the rally dice will at least show up in the roll selection (#480)

This commit is contained in:
WBHarry 2025-07-30 15:59:48 +02:00 committed by GitHub
parent 46baef65a6
commit 7bbbdce739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ export default class DualityRoll extends D20Roll {
} }
setRallyChoices() { setRallyChoices() {
return this.data?.parent?.effects.reduce((a, c) => { return this.data?.parent?.appliedEffects.reduce((a, c) => {
const change = c.changes.find(ch => ch.key === 'system.bonuses.rally'); 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: change.value });
return a; return a;