Skip to content

Commit

Permalink
fix correct assignment ^_^
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Aug 22, 2024
1 parent 185f7a8 commit a3b3f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit a3b3f5e

Please sign in to comment.