Skip to content

Commit

Permalink
Don't overwrite existing object for turn parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Aug 22, 2024
1 parent 216dcb7 commit 462781a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function get_effects_in_markdown(actor, token) {
function parse_turn(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))

Expand Down

0 comments on commit 462781a

Please sign in to comment.