Fixed DamageReductionDialog

This commit is contained in:
WBHarry 2026-02-13 23:01:55 +01:00
parent 3b011e2580
commit 8f0b1f6ed3
6 changed files with 172 additions and 69 deletions

View file

@ -559,6 +559,18 @@ export default class DhCharacter extends BaseDataActor {
doc.updateEmbeddedDocuments('ActiveEffect', updates, { render: index === updateValues.length - 1 });
}
async updateArmorEffectValue({ uuid, value }) {
const effect = await foundry.utils.fromUuid(uuid);
await effect.update({
'system.changes': [
{
...effect.system.armorChange,
value: effect.system.armorChange.value + value
}
]
});
}
get sheetLists() {
const ancestryFeatures = [],
communityFeatures = [],