Fixed so that players rolling reactions will update the message (#1455)

This commit is contained in:
WBHarry 2025-12-22 14:34:43 +01:00 committed by GitHub
parent 659f73116a
commit 16f6fa98a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 11 deletions

View file

@ -21,8 +21,8 @@ export const registerDHSettings = () => {
scope: 'world',
config: true,
type: Boolean,
onChange: () => ui.combat.render(),
})
onChange: () => ui.combat.render()
});
};
const registerMenuSettings = () => {

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;
}