mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 19:09:55 +02:00
Tentative blindfix to issues of entities being null. Can't replicate it
This commit is contained in:
parent
a6821ea5dd
commit
453054c0e4
1 changed files with 2 additions and 0 deletions
|
|
@ -303,6 +303,8 @@ export async function runMigrations() {
|
||||||
|
|
||||||
/* Migrate existing effects modifying armor, creating new Armor Effects instead */
|
/* Migrate existing effects modifying armor, creating new Armor Effects instead */
|
||||||
const migrateEffects = async entity => {
|
const migrateEffects = async entity => {
|
||||||
|
if (!entity?.effects) return;
|
||||||
|
|
||||||
for (const effect of entity.effects) {
|
for (const effect of entity.effects) {
|
||||||
if (effect.system.changes.every(x => x.key !== 'system.armorScore')) continue;
|
if (effect.system.changes.every(x => x.key !== 'system.armorScore')) continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue