From a3b3f5ec9ab1b2e09d49fc6df6a0c21cdef00d39 Mon Sep 17 00:00:00 2001 From: Christopher Renaud Oelerich Date: Thu, 22 Aug 2024 16:33:59 -0400 Subject: [PATCH] fix correct assignment ^_^ --- src/combat.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/combat.mjs b/src/combat.mjs index 57f1b83..0295911 100644 --- a/src/combat.mjs +++ b/src/combat.mjs @@ -69,9 +69,9 @@ function get_effects_in_markdown(actor, token) { } function parse_turn(combat, updateData) { - const c = Object.assign({}, combat, updateData) + const c = Object.assign(combat, updateData) const turn = c.turns[c.turn] - const actor = Object.assign( + const actor = Object.assign({}, game.actors.find((a) => a.id === turn.actorId), combat.combatants.find((cb) => cb.tokenId === turn.tokenId), )