mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Fix damage save 3
This commit is contained in:
parent
0a6c1294ca
commit
edc43d3311
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo
|
||||||
return ui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.noTargetsSelected'));
|
return ui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.noTargetsSelected'));
|
||||||
|
|
||||||
for (let target of targets) {
|
for (let target of targets) {
|
||||||
let damages = message.system.damage?.roll ?? message.system.roll;
|
let damages = foundry.utils.deepClone(message.system.damage?.roll ?? message.system.roll);
|
||||||
if (message.system.onSave && message.system.targets.find(t => t.id === target.id)?.saved?.success === true) {
|
if (message.system.onSave && message.system.targets.find(t => t.id === target.id)?.saved?.success === true) {
|
||||||
const mod = CONFIG.DH.ACTIONS.damageOnSave[message.system.onSave]?.mod ?? 1;
|
const mod = CONFIG.DH.ACTIONS.damageOnSave[message.system.onSave]?.mod ?? 1;
|
||||||
Object.entries(damages).forEach(([k,v]) => {
|
Object.entries(damages).forEach(([k,v]) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue