fix(#272): hook into renderChatMessageHTML for skill fail rollbacks

This commit is contained in:
Tobias Frölich
2025-12-05 08:47:46 +01:00
committed by samulopez
parent 5c2caa5146
commit 0cfc04ab58
+1 -1
View File
@@ -190,7 +190,7 @@ Hooks.on("renderGamePause", function (_, html, options) {
}
});
Hooks.on("renderChatLog", async (app, element, context, options) => {
Hooks.on("renderChatMessageHTML", async (app, element, context, options) => {
element.addEventListener("click", (event) => {
const btnWithAction = event.target.closest("button[data-action]");
const message = event.target.closest("li[data-message-id]");