diff --git a/module/migration.js b/module/migration.js index 9bc324bf..2c65ec43 100644 --- a/module/migration.js +++ b/module/migration.js @@ -260,7 +260,7 @@ export const getMigrationData = async function() { if(!ad) return updateData; const old = ad?.attributes?.hp?.temphp; - const hasOld = old !== undefined || ad.attributes[`hp-=temphp`] !== undefined; + const hasOld = old !== undefined && ad.attributes[`hp-=temphp`] !== undefined; if ( hasOld ) { // If new data is not present, migrate the old data if (old !== undefined && ad.attributes?.temphp?.value !== old && (typeof old === "number") ) { diff --git a/template.json b/template.json index 5c04f72a..cbd3d180 100644 --- a/template.json +++ b/template.json @@ -516,6 +516,11 @@ } }, + "untypedResistances": { + "resistances" : [], + "vulnerabilities" : [], + "immunities" : [] + }, "encumbrance": { "value": null, "max": null, @@ -569,6 +574,7 @@ "weight": "", "alignment": "", "deity": "", + "equipment": "", "secondwind": false, "deathsaves": 3,