mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Fixed so that players rolling reactions will update the message
This commit is contained in:
parent
99d0eab5bd
commit
a1f9d597ed
5 changed files with 12 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue