Skip to content

Commit

Permalink
Fix dicepool migration script from re-running and adding duplicate di…
Browse files Browse the repository at this point in the history
…cepools
  • Loading branch information
Veilza committed Sep 1, 2024
1 parent 854edc6 commit 9d36191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/scripts/migration/migrate-rolldata-to-dicepools.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const MigrateRolldataToDicepools = async function () {
let hasFixedItems = false

for (const item of actorItems) {
// If the item was previously rollable, migrate the rolldata to the new format
if (item.system?.rollable) {
// If the item was previously rollable and doesn't already have a dicepool, migrate the rolldata to the new format
if (item.system?.rollable && !item.system?.dicepool) {
hasFixedItems = true
const dicepool = {}

Expand Down

0 comments on commit 9d36191

Please sign in to comment.