Fixed ActiveEffect.getChangeValue not expecting a number as change.value

This commit is contained in:
WBHarry 2026-02-02 20:00:15 +01:00
parent 578b090f08
commit c17020c2c8

View file

@ -116,7 +116,7 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
}
static getChangeValue(model, change, effect) {
let key = change.value;
let key = change.value.toString();
const isOriginTarget = key.toLowerCase().includes('origin.@');
let parseModel = model;
if (isOriginTarget && effect.origin) {