fix(#845): emblem shield - remove incorrect data

This commit is contained in:
Azgaar 2022-07-01 21:00:00 +03:00
parent e632274d5d
commit 3064961c59
4 changed files with 54 additions and 25 deletions

View file

@ -629,4 +629,11 @@ export function resolveVersionConflicts(version) {
delete religion.origin;
}
}
if (version < 1.88) {
// v1.87 may have incorrect shield for some reason
pack.states.forEach(({coa}) => {
if (coa?.shield === "state") delete coa.shield;
});
}
}