This commit is contained in:
WBHarry 2026-01-13 18:52:36 +01:00
parent 221e1d1f62
commit e77a0042cb
3 changed files with 7 additions and 5 deletions

View file

@ -112,10 +112,12 @@ export default class DamageRoll extends DHRoll {
const changeKeys = [];
for (const roll of this.options.roll) {
for (const damageType of roll.damageTypes) changeKeys.push(`system.bonuses.${type}.${damageType}`);
for (const damageType of roll.damageTypes?.values?.() ?? []) {
changeKeys.push(`system.bonuses.${type}.${damageType}`);
}
}
const item = this.data.parent.items?.get(this.options.source.item);
const item = this.data.parent?.items?.get(this.options.source.item);
if (item) {
switch (item.type) {
case 'weapon':