Fixed so that players rolling reactions will update the message

This commit is contained in:
WBHarry 2025-12-22 01:00:49 +01:00
parent 99d0eab5bd
commit a1f9d597ed
5 changed files with 12 additions and 9 deletions

View file

@ -73,10 +73,13 @@ export const registerSocketHooks = () => {
Hooks.callAll(socketEvent.Refresh, { refreshType: RefreshType.Countdown });
break;
case GMUpdateEvent.UpdateSaveMessage:
const action = await fromUuid(data.update.action),
message = game.messages.get(data.update.message);
if (!action || !message) return;
action.updateSaveMessage(data.update.result, message, data.update.token);
const message = game.messages.get(data.update.message);
if (!message) return;
game.system.api.fields.ActionFields.SaveField.updateSaveMessage(
data.update.result,
message,
data.update.token
);
break;
}