From 6100f3cf9eac8951bc36ef40a2ca16a50031b416 Mon Sep 17 00:00:00 2001 From: Dapoulp <74197441+Dapoulp@users.noreply.github.com> Date: Sun, 17 Aug 2025 18:40:47 +0200 Subject: [PATCH] [PR]Fix/allow deal damage button use owner (#985) * Temp ActionField attack type missing * Move missing attack type to getModel * Fix player not allowed to use Deal Damage button if Actor not assigned --- module/applications/ui/chatLog.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 8b4b12d3..a80974ed 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -108,7 +108,7 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo async onRollDamage(event, message) { event.stopPropagation(); const actor = await this.getActor(message.system.source.actor); - if (game.user.character?.id !== actor.id && !game.user.isGM) return true; + if(!actor.isOwner) return true; if (message.system.source.item && message.system.source.action) { const action = this.getAction(actor, message.system.source.item, message.system.source.action); if (!action || !action?.rollDamage) return;