Semi-corrected reroll of one of multiple results on a die

This commit is contained in:
WBHarry 2026-07-15 02:35:27 +02:00
parent fea3671069
commit 20febb82d5
3 changed files with 11 additions and 10 deletions

View file

@ -254,8 +254,8 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
const target = event.target.closest('[data-die-index]');
if (target.dataset.type === 'damage') {
const { damageType, dice } = target.dataset;
await message.system.damage.rerollDamageDice(damageType, dice);
const { damageType, dice, result } = target.dataset;
await message.system.damage.rerollDamageDice(damageType, dice, result);
await message.update({
'system.damage.types': {
[damageType]: {