Fixed DiceSoNice rolling on damage

This commit is contained in:
WBHarry 2026-07-18 18:54:29 +02:00
parent cb917b2dc9
commit 02b685a8fd
3 changed files with 8 additions and 6 deletions

View file

@ -7,7 +7,8 @@ export class Migration_2_5_2 extends MigrationHandlerBase {
async updateActiveEffectSource(effectSource, item) {
let shouldUpdate = false;
const newChanges = [];
const srdItem = item?._stats.compendiumSource ?
const srdItem = item?._stats?.compendiumSource ?
await foundry.utils.fromUuid(item?._stats.compendiumSource) :
null;
for (let i = 0; i < effectSource.system.changes.length; i++) {