From e489502bb2d65936ae46158c702302666127abe0 Mon Sep 17 00:00:00 2001 From: nsalyzyn Date: Mon, 29 Dec 2025 13:32:11 -0700 Subject: [PATCH] No longer using an arbitrary 100 healing. Changing the action's parent --- module/applications/ui/chatLog.mjs | 2 +- module/config/generalConfig.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index fc3208f1..cc42df2f 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -135,7 +135,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo async actionUseButton(event, message) { const { moveIndex, actionIndex, movePath } = event.currentTarget.dataset; const targetUuid = event.currentTarget.closest('.action-use-button-parent').querySelector('select')?.value; - const parent = await foundry.utils.fromUuid(message.system.actor); + const parent = await foundry.utils.fromUuid(targetUuid || message.system.actor) const actionType = message.system.moves[moveIndex].actions[actionIndex]; const cls = game.system.api.models.actions.actionsTypes[actionType.type]; diff --git a/module/config/generalConfig.mjs b/module/config/generalConfig.mjs index 3c755234..3f49f7aa 100644 --- a/module/config/generalConfig.mjs +++ b/module/config/generalConfig.mjs @@ -350,7 +350,7 @@ export const defaultRestOptions = { value: { custom: { enabled: true, - formula: '100' + formula: '@system.resources.hitPoints.max' } } } @@ -416,7 +416,7 @@ export const defaultRestOptions = { value: { custom: { enabled: true, - formula: '100' + formula: '@system.armorScore' } } }